55static constexpr unsigned int Count{6};
#define SFML_WINDOW_API
Definition Export.hpp:42
Give access to the real-time state of the sensors.
Definition Sensor.hpp:39
SFML_WINDOW_API Vector3f getValue(Type sensor)
Get the current sensor value.
SFML_WINDOW_API void setEnabled(Type sensor, bool enabled)
Enable or disable a sensor.
Type
Sensor type.
Definition Sensor.hpp:45
@ Gravity
Measures the direction and intensity of gravity, independent of device acceleration (m/s^2).
Definition Sensor.hpp:49
@ Magnetometer
Measures the ambient magnetic field (micro-teslas).
Definition Sensor.hpp:48
@ Orientation
Measures the absolute 3D orientation (radians).
Definition Sensor.hpp:51
@ Accelerometer
Measures the raw acceleration (m/s^2).
Definition Sensor.hpp:46
@ Gyroscope
Measures the raw rotation rates (radians/s).
Definition Sensor.hpp:47
@ UserAcceleration
Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2).
Definition Sensor.hpp:50
SFML_WINDOW_API bool isAvailable(Type sensor)
Check if a sensor is available on the underlying platform.
Vector3< float > Vector3f
Definition Vector3.hpp:313