C# Class WoWmapper.Controllers.Xbox.XInputController

Inheritance: IController
Datei anzeigen Open project: topher-au/WoWmapper Class Usage Examples

Public Methods

Method Description
GetAxis ( GamepadAxis axis ) : int
GetButtonState ( GamepadButton button ) : bool
IsAlive ( ) : bool
SendRumble ( byte left, byte right, int duration ) : void
Stop ( ) : void
XInputController ( int deviceIndex ) : System

Private Methods

Method Description
MonitorThread ( ) : void
SendButtonEvent ( GamepadButton button, bool state ) : void

Method Details

GetAxis() public method

public GetAxis ( GamepadAxis axis ) : int
axis GamepadAxis
return int

GetButtonState() public method

public GetButtonState ( GamepadButton button ) : bool
button GamepadButton
return bool

IsAlive() public method

public IsAlive ( ) : bool
return bool

SendRumble() public method

public SendRumble ( byte left, byte right, int duration ) : void
left byte
right byte
duration int
return void

Stop() public method

public Stop ( ) : void
return void

XInputController() public method

public XInputController ( int deviceIndex ) : System
deviceIndex int
return System