C# 클래스 SFML.Window.Sensor

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

공개 메소드들

메소드 설명
GetValue ( Type Sensor ) : Vector3f

Get the current sensor value

IsAvailable ( Type Sensor ) : bool

Check if a sensor is available on the underlying platform

SetEnabled ( Type Sensor, bool Enabled ) : void

Enable or disable a sensor

비공개 메소드들

메소드 설명
sfSensor_getValue ( Type Sensor ) : Vector3f
sfSensor_isAvailable ( Type Sensor ) : bool
sfSensor_setEnabled ( Type Sensor, bool Enabled ) : void

메소드 상세

GetValue() 공개 정적인 메소드

Get the current sensor value
public static GetValue ( Type Sensor ) : Vector3f
Sensor Type Sensor to check
리턴 Vector3f

IsAvailable() 공개 정적인 메소드

Check if a sensor is available on the underlying platform
public static IsAvailable ( Type Sensor ) : bool
Sensor Type Sensor to check
리턴 bool

SetEnabled() 공개 정적인 메소드

Enable or disable a sensor
public static SetEnabled ( Type Sensor, bool Enabled ) : void
Sensor Type Sensor to check
Enabled bool True to enable, false to disable
리턴 void