25#ifndef SFML_SENSOR_HPP
26#define SFML_SENSOR_HPP
31#include <SFML/Window/Export.hpp>
32#include <SFML/System/Vector3.hpp>
33#include <SFML/System/Time.hpp>
Give access to the real-time state of the sensors.
@ Accelerometer
Measures the raw acceleration (m/s^2)
@ Gyroscope
Measures the raw rotation rates (degrees/s)
@ Orientation
Measures the absolute 3D orientation (degrees)
@ UserAcceleration
Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2)
@ Magnetometer
Measures the ambient magnetic field (micro-teslas)
@ Gravity
Measures the direction and intensity of gravity, independent of device acceleration (m/s^2)
static bool isAvailable(Type sensor)
Check if a sensor is available on the underlying platform.
static Vector3f getValue(Type sensor)
Get the current sensor value.
static void setEnabled(Type sensor, bool enabled)
Enable or disable a sensor.
Utility template class for manipulating 3-dimensional vectors.