A struct offering the current positions of as many as 3 thumbsticks on a PC gamepad or joystick. More...
Public Member Functions | |
| DirectInputThumbSticks (Device device) | |
Public Attributes | |
| Vector2 | Left |
| Check HasLeft, HasRight, etc before getting these values; will always be 0 if this gamepad lacks the requested thumbstick. | |
| Vector2 | Right |
| Vector2 | Third |
| bool | HasLeft |
| bool | HasRight |
| bool | HasThird |
| const float | center = 32767.5f |
A struct offering the current positions of as many as 3 thumbsticks on a PC gamepad or joystick.
For unusual joysticks, these "thumbsticks" may be whatever the hardware-designer imagined; for example, Right.Y might be a jet-throttle and Right.X might be the rotational position of a steering wheel In other words, being in the list of Gamepads doesn't mean it looks anything like a Gamepad
Definition at line 147 of file DirectXInput.cs.
Check HasLeft, HasRight, etc before getting these values; will always be 0 if this gamepad lacks the requested thumbstick.
Definition at line 153 of file DirectXInput.cs.
1.6.2