# NewGamePhysics.Utilities.DirectInputThumbSticks Struct Reference

A struct offering the current positions of as many as 3 thumbsticks on a PC gamepad or joystick. More...

List of all members.

## 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

## Detailed Description

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.

## Member Data Documentation

Vector2 NewGamePhysics.Utilities.DirectInputThumbSticks.Left

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.

The documentation for this struct was generated from the following file:

- C:/Users/Andreas Schiffler/Desktop/SVN/NewGamePhysics/NewGamePhysics/Utilities/DirectXInput.cs