C# 클래스 F1Publisher.DataGenerators.DirectInputManager

상속: ICarControlsDataGenerator, IDisposable
파일 보기 프로젝트 열기: pushtechnology/blog-steering-wheel 1 사용 예제들

공개 메소드들

메소드 설명
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