C# 클래스 SFML.Window.Joystick

Give access to the real-time state of the joysticks
파일 보기 프로젝트 열기: SFML/SFML.Net

공개 프로퍼티들

프로퍼티 타입 설명
AxisCount uint
ButtonCount uint
Count uint

공개 메소드들

메소드 설명
GetAxisPosition ( uint joystick, Axis axis ) : float

Get the current position of a joystick axis

GetButtonCount ( uint joystick ) : uint

Return the number of buttons supported by a joystick

GetIdentification ( uint joystick ) : Identification

Get the joystick information

HasAxis ( uint joystick, Axis axis ) : bool

Check if a joystick supports a given axis

IsButtonPressed ( uint joystick, uint button ) : bool

Check if a joystick button is pressed

IsConnected ( uint joystick ) : bool

Check if a joystick is connected

Update ( ) : void

Update the states of all joysticks

비공개 메소드들

메소드 설명
sfJoystick_getAxisPosition ( uint joystick, Axis axis ) : float
sfJoystick_getButtonCount ( uint joystick ) : uint
sfJoystick_getIdentification ( uint joystick ) : IdentificationMarshalData
sfJoystick_hasAxis ( uint joystick, Axis axis ) : bool
sfJoystick_isButtonPressed ( uint joystick, uint button ) : bool
sfJoystick_isConnected ( uint joystick ) : bool
sfJoystick_update ( ) : void

메소드 상세

GetAxisPosition() 공개 정적인 메소드

Get the current position of a joystick axis
public static GetAxisPosition ( uint joystick, Axis axis ) : float
joystick uint Index of the joystick
axis Axis Axis to check
리턴 float

GetButtonCount() 공개 정적인 메소드

Return the number of buttons supported by a joystick
public static GetButtonCount ( uint joystick ) : uint
joystick uint Index of the joystick
리턴 uint

GetIdentification() 공개 정적인 메소드

Get the joystick information
public static GetIdentification ( uint joystick ) : Identification
joystick uint Index of the joystick
리턴 Identification

HasAxis() 공개 정적인 메소드

Check if a joystick supports a given axis
public static HasAxis ( uint joystick, Axis axis ) : bool
joystick uint Index of the joystick
axis Axis Axis to check
리턴 bool

IsButtonPressed() 공개 정적인 메소드

Check if a joystick button is pressed
public static IsButtonPressed ( uint joystick, uint button ) : bool
joystick uint Index of the joystick
button uint Button to check
리턴 bool

IsConnected() 공개 정적인 메소드

Check if a joystick is connected
public static IsConnected ( uint joystick ) : bool
joystick uint Index of the joystick to check
리턴 bool

Update() 공개 정적인 메소드

Update the states of all joysticks
public static Update ( ) : void
리턴 void

프로퍼티 상세

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

Maximum number of supported axes
public static uint AxisCount
리턴 uint

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

Maximum number of supported buttons
public static uint ButtonCount
리턴 uint

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

Maximum number of supported joysticks
public static uint Count
리턴 uint