C# Class SuperCaissiere.Engine.Input.JoystickManager

This class analyzes and manages joystick/joypad devices using JoystickReader
Afficher le fichier Open project: valryon/super-caissiere Class Usage Examples

Méthodes publiques

Свойство Type Description
MaxJoystickNumber int
MiddleAxisValue int

Méthodes publiques

Méthode Description
GetJoyState ( int id ) : JoystickState

Get button and axis state for a joypad (SHOULD BE CONNECTED !!!)

JoystickManager ( ) : System.Diagnostics

Initialize the manager

Scan ( ) : void

Update devices status

Private Methods

Méthode Description
ScanID ( int id ) : void

Update a precise device status

Method Details

GetJoyState() public méthode

Get button and axis state for a joypad (SHOULD BE CONNECTED !!!)
public GetJoyState ( int id ) : JoystickState
id int
Résultat JoystickState

JoystickManager() public méthode

Initialize the manager
public JoystickManager ( ) : System.Diagnostics
Résultat System.Diagnostics

Scan() public méthode

Update devices status
public Scan ( ) : void
Résultat void

Property Details

MaxJoystickNumber public_oe static_oe property

Arbitrary decide the maximum number of joystick to test. But who the hell have more than 4 joysticks connected to USB ports simultanely ?!
public static int MaxJoystickNumber
Résultat int

MiddleAxisValue public_oe static_oe property

The value of a joystick axis when centered
public static int MiddleAxisValue
Résultat int