C# Class Fusion.Drivers.Input.Gamepad

Mostrar archivo Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
IsKeyPressed ( GamepadButtons button ) : bool

SetVibration ( float leftMotor, float rightMotor ) : void

Sets vibration

Protected Methods

Method Description
Gamepad ( int index ) : System

UpdateState ( ) : void

Updates controller state

Private Methods

Method Description
GetGamePad ( int playerIndex ) : Gamepad

Gets gamepad state.

GetStickDirection ( short sX, short sY, short threshold ) : System.Vector2

Update ( ) : void

Method Details

Gamepad() protected method

protected Gamepad ( int index ) : System
index int
return System

IsKeyPressed() public method

public IsKeyPressed ( GamepadButtons button ) : bool
button GamepadButtons
return bool

SetVibration() public method

Sets vibration
public SetVibration ( float leftMotor, float rightMotor ) : void
leftMotor float
rightMotor float
return void

UpdateState() protected method

Updates controller state
protected UpdateState ( ) : void
return void