Commit graph

10 commits

Author SHA1 Message Date
Fraser Waters 1ca084cf8a [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).
2014-11-27 22:05:33 +01:00
thefiddler 3bf29b074c [Input] Fixed debug display of Back gamepad button 2014-09-18 01:20:21 +02:00
thefiddler 6c2a6336b5 [Input] Added missing Back button in ToString() 2014-09-11 12:51:50 +02:00
thefiddler 15a79e5213 [Input] Improved GamePadButtons.ToString() 2014-09-11 12:51:48 +02:00
thefiddler 3095afa18a [Input] Documented all public members 2014-01-03 01:58:16 +01:00
Stefanos A 7fd7b8c7a2 Improved ToString implementation 2013-12-24 17:18:05 +01:00
Stefanos A 1adc3f7733 Display start button in ToString() 2013-12-24 17:18:02 +01:00
Stefanos A 0c10f29bd8 More compact string representation 2013-12-24 17:18:00 +01:00
Stefanos A 1acf8a807b Implemented IEquatable<> interface 2013-12-24 17:18:00 +01:00
thefiddler ecd04a3cad Implemented GamePadButtons 2013-12-24 17:18:00 +01:00