Beispiel #1
0
        internal bool IsPressed(Key key)
        {
            if (key == Key.Unbound || key == Key.Unknown)
            {
                return(false);
            }

            AvaloniaMappingHelper.TryGetAvaKey(key, out var nativeKey);

            return(_pressedKeys.Contains(nativeKey));
        }
Beispiel #2
0
 public ButtonMappingEntry(GamepadButtonInputId to, Key from)
 {
     To   = to;
     From = from;
 }