C# Class MFIGamepadFeeder.Gamepad

Inheritance: IDisposable
Mostrar archivo Open project: Axadiw/MFIGamepadFeeder Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Gamepad ( GamepadConfiguration config, VGenWrapper vGenWrapper, HidDeviceLoader hidDeviceLoader ) : System
Start ( ) : bool
Stop ( ) : void
UpdateState ( byte state ) : void

Private Methods

Method Description
ConvertToButtonState ( byte value ) : bool
InvertNormalizedAxis ( double axisToInvert ) : double
Log ( string message ) : void
NormalizeAxis ( double valueToNormalize, bool shouldConvert ) : double
PlugInToHidDeviceAndStartLoop ( ) : bool
PlugInToXBoxController ( ) : bool
UnPlugXBoxController ( ) : bool
UpdateAxis ( double itemValue, GamepadMappingItem configForCurrentItem ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Gamepad() public method

public Gamepad ( GamepadConfiguration config, VGenWrapper vGenWrapper, HidDeviceLoader hidDeviceLoader ) : System
config MFIGamepadShared.Configuration.GamepadConfiguration
vGenWrapper vGenWrapper.VGenWrapper
hidDeviceLoader HidSharp.HidDeviceLoader
return System

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : void
return void

UpdateState() public method

public UpdateState ( byte state ) : void
state byte
return void