C# Класс SFML.Window.Sensor

Give access to the real-time state of sensors
Показать файл Открыть проект

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

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