C# 클래스 SuperCaissiere.Engine.Input.JoystickManager

This class analyzes and manages joystick/joypad devices using JoystickReader
파일 보기 프로젝트 열기: valryon/super-caissiere 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MaxJoystickNumber int
MiddleAxisValue int

공개 메소드들

메소드 설명
GetJoyState ( int id ) : JoystickState

Get button and axis state for a joypad (SHOULD BE CONNECTED !!!)

JoystickManager ( ) : System.Diagnostics

Initialize the manager

Scan ( ) : void

Update devices status

비공개 메소드들

메소드 설명
ScanID ( int id ) : void

Update a precise device status

메소드 상세

GetJoyState() 공개 메소드

Get button and axis state for a joypad (SHOULD BE CONNECTED !!!)
public GetJoyState ( int id ) : JoystickState
id int
리턴 JoystickState

JoystickManager() 공개 메소드

Initialize the manager
public JoystickManager ( ) : System.Diagnostics
리턴 System.Diagnostics

Scan() 공개 메소드

Update devices status
public Scan ( ) : void
리턴 void

프로퍼티 상세

MaxJoystickNumber 공개적으로 정적으로 프로퍼티

Arbitrary decide the maximum number of joystick to test. But who the hell have more than 4 joysticks connected to USB ports simultanely ?!
public static int MaxJoystickNumber
리턴 int

MiddleAxisValue 공개적으로 정적으로 프로퍼티

The value of a joystick axis when centered
public static int MiddleAxisValue
리턴 int