コード例 #1
0
 public bool CheckKeyPressed(VirtualKeyCode key)
 {
     return(Game.KeyboardState.IsKeyDown(KeyMapper.GetMap(key)));
 }
コード例 #2
0
 private void Game_KeyPressed(Keys key)
 {
     KeyPress?.Invoke(this, new KeyboardEventArgs(KeyMapper.GetMap(key)));
 }