internal bool IsPressed(Key key) { if (key == Key.Unbound || key == Key.Unknown) { return(false); } AvaloniaMappingHelper.TryGetAvaKey(key, out var nativeKey); return(_pressedKeys.Contains(nativeKey)); }
public ButtonMappingEntry(GamepadButtonInputId to, Key from) { To = to; From = from; }