Constructor.
| C# | Visual Basic | Visual C++ |
public JoystickAxisController( Joystick joystick, IValueControl control, Joystick..::.Axes axis, int max, int deadZone, bool flip )
Public Sub New ( _ joystick As Joystick, _ control As IValueControl, _ axis As Joystick..::.Axes, _ max As Integer, _ deadZone As Integer, _ flip As Boolean _ )
public: JoystickAxisController( Joystick^ joystick, IValueControl^ control, Joystick..::.Axes axis, int max, int deadZone, bool flip )
- joystick (Joystick)
- The joystick to be connected.
- control (IValueControl)
- The IValueControl to be connected.
- axis (Joystick..::.Axes)
- The joystick axis to use for control.
- max (Int32)
- The ValueRate to be sent to the IValueControl at max deflection of the joystick.
- deadZone (Int32)
- The percent of the axis full range to be reserved as the dead zone, where 1000 equals one percent.
- flip (Boolean)
- Flip the direction of movement for joystick deflection.