C# Class SFML.Window.Sensor

Give access to the real-time state of sensors
Afficher le fichier Open project: SFML/SFML.Net

Méthodes publiques

Méthode 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

Méthode Description
sfSensor_getValue ( Type Sensor ) : Vector3f
sfSensor_isAvailable ( Type Sensor ) : bool
sfSensor_setEnabled ( Type Sensor, bool Enabled ) : void

Method Details

GetValue() public static méthode

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

IsAvailable() public static méthode

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

SetEnabled() public static méthode

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
Résultat void