C# Класс F1Publisher.DataGenerators.DirectInputManager

Наследование: ICarControlsDataGenerator, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ButtonState ( CarButtons button ) : bool
DirectInputManager ( ) : System
Dispose ( ) : void
Update ( ) : void

Защищенные методы

Метод Описание
OnAccelerationValueChanged ( FloatingPointScalarEventArgs e ) : void
OnBrakingValueChanged ( FloatingPointScalarEventArgs e ) : void
OnButtonStateChanged ( CarButtonEventArgs e ) : void
OnSteeringValueChanged ( FloatingPointScalarEventArgs e ) : void

Приватные методы

Метод Описание
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

Описание методов

ButtonState() публичный Метод

public ButtonState ( CarButtons button ) : bool
button CarButtons
Результат bool

DirectInputManager() публичный Метод

public DirectInputManager ( ) : System
Результат System

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

OnAccelerationValueChanged() защищенный Метод

protected OnAccelerationValueChanged ( FloatingPointScalarEventArgs e ) : void
e FloatingPointScalarEventArgs
Результат void

OnBrakingValueChanged() защищенный Метод

protected OnBrakingValueChanged ( FloatingPointScalarEventArgs e ) : void
e FloatingPointScalarEventArgs
Результат void

OnButtonStateChanged() защищенный Метод

protected OnButtonStateChanged ( CarButtonEventArgs e ) : void
e CarButtonEventArgs
Результат void

OnSteeringValueChanged() защищенный Метод

protected OnSteeringValueChanged ( FloatingPointScalarEventArgs e ) : void
e FloatingPointScalarEventArgs
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void