C# Class F1Publisher.DataGenerators.DirectInputManager

Inheritance: ICarControlsDataGenerator, IDisposable
Afficher le fichier Open project: pushtechnology/blog-steering-wheel Class Usage Examples

Méthodes publiques

Méthode Description
ButtonState ( CarButtons button ) : bool
DirectInputManager ( ) : System
Dispose ( ) : void
Update ( ) : void

Méthodes protégées

Méthode Description
OnAccelerationValueChanged ( FloatingPointScalarEventArgs e ) : void
OnBrakingValueChanged ( FloatingPointScalarEventArgs e ) : void
OnButtonStateChanged ( CarButtonEventArgs e ) : void
OnSteeringValueChanged ( FloatingPointScalarEventArgs e ) : void

Private Methods

Méthode Description
CreateCarButtonEventArgs ( int i, bool on ) : CarButtonEventArgs

This method will only return an object if the button index is mapped for the current device. Otherwise, it will return null.

FindAttachedDevice ( DirectInput directInput, DeviceType deviceType ) : DeviceInstance
GetConsoleWindow ( ) : IntPtr
RangePedal ( int rawValue ) : double
RangeSteering ( int rawValue ) : double
UpdateAcceleration ( JoystickState joystickState ) : void
UpdateBraking ( JoystickState joystickState ) : void
UpdateButtons ( JoystickState joystickState ) : void
UpdateSteering ( JoystickState joystickState ) : void

Method Details

ButtonState() public méthode

public ButtonState ( CarButtons button ) : bool
button CarButtons
Résultat bool

DirectInputManager() public méthode

public DirectInputManager ( ) : System
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

OnAccelerationValueChanged() protected méthode

protected OnAccelerationValueChanged ( FloatingPointScalarEventArgs e ) : void
e FloatingPointScalarEventArgs
Résultat void

OnBrakingValueChanged() protected méthode

protected OnBrakingValueChanged ( FloatingPointScalarEventArgs e ) : void
e FloatingPointScalarEventArgs
Résultat void

OnButtonStateChanged() protected méthode

protected OnButtonStateChanged ( CarButtonEventArgs e ) : void
e CarButtonEventArgs
Résultat void

OnSteeringValueChanged() protected méthode

protected OnSteeringValueChanged ( FloatingPointScalarEventArgs e ) : void
e FloatingPointScalarEventArgs
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void