Exemplo n.º 1
0
        public override int GetKeyNumber(ViewModel.Core.GameKey key)
        {
            var key2 = (Key)key;
            int code = -1;

            if (key2 >= Key.D1 && key2 <= Key.D9)
            {
                code = key2 - Key.D1;
            }
            else if (key2 >= Key.NumPad1 && key2 <= Key.NumPad9)
            {
                code = key2 - Key.NumPad1;
            }

            return(code);
        }
Exemplo n.º 2
0
 public override bool IsEscapeKey(ViewModel.Core.GameKey key)
 {
     return((Key)key == Key.Escape);
 }