C# Class SFML.Window.Sensor

Give access to the real-time state of sensors
Mostrar archivo Open project: SFML/SFML.Net

Public Methods

Method Description
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

Private Methods

Method Description
sfSensor_getValue ( Type Sensor ) : Vector3f
sfSensor_isAvailable ( Type Sensor ) : bool
sfSensor_setEnabled ( Type Sensor, bool Enabled ) : void

Method Details

GetValue() public static method

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

IsAvailable() public static method

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

SetEnabled() public static method

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
return void