コード例 #1
0
ファイル: InputState.cs プロジェクト: danzel/FarseerPhysics
 public InputState()
 {
     LastKeyboardState = new KeyboardState();
     CurrentKeyboardState = new KeyboardState();
     LastMouseState = new MouseState();
     CurrentMouseState = new MouseState();
 }
コード例 #2
0
ファイル: InputState.cs プロジェクト: danzel/FarseerPhysics
 public void Update(GameTime gameTime)
 {
     LastKeyboardState = new KeyboardState(CurrentKeyboardState);
     LastMouseState = new MouseState(CurrentMouseState);
 }
コード例 #3
0
 public KeyboardState(KeyboardState state)
 {
     isPressed = (bool[])state.isPressed.Clone();
 }