[Input] Add IsAnyKey/ButtonDown/Pressed to input state.
authorFraser Waters <frassle@gmail.com>
Tue, 18 Nov 2014 22:10:06 +0000 (23:10 +0100)
committerFraser Waters <frassle@gmail.com>
Thu, 27 Nov 2014 21:05:33 +0000 (22:05 +0100)
commit1ca084cf8a29f70aabe20510f791a8617e2e72e1
tree983ac904bf604ddb30f11a78f95411579692a99a
parenta43181a8026fbe76454a974c5e233c7c63835358
[Input] Add IsAnyKey/ButtonDown/Pressed to input state.

Adds properties to KeyboardState, MouseState, JoystickState and GamePadState
(GamePadButtons), to see if any key or button is down. This should be faster
than iterating over all the public IsDown properties as we can make use of the
internal bit fields.

GamePadButtons uses IsButtonPressed rather than IsButtonDown like the others as
it more closely matches it's current interface (no down methods).
Source/OpenTK/Input/GamePadButtons.cs
Source/OpenTK/Input/JoystickState.cs
Source/OpenTK/Input/KeyboardState.cs
Source/OpenTK/Input/MouseState.cs