1 #ifndef CPP3DS_SENSOR_HPP
2 #define CPP3DS_SENSOR_HPP
4 #include <cpp3ds/System/Vector3.hpp>
5 #include <cpp3ds/System/Time.hpp>
83 static bool m_accel_enabled;
84 static bool m_gyro_enabled;
Measures the raw acceleration (m/s²)
Measures the absolute 3D orientation (degrees)
static bool isAvailable(Type sensor)
Check if a sensor is available on the underlying platform.
static void update()
Update the state of all the sensors.
Give access to the real-time state of the sensors.
static Vector3f getValue(Type sensor)
Get the current sensor value.
Measures the raw rotation rates (degrees/s)
static void setEnabled(Type sensor, bool enabled)
Enable or disable a sensor.
static bool isEnabled(Type sensor)
Check if a sensor is enabled.
Measures the ambient magnetic field (micro-teslas)
Measures the direction and intensity of device acceleration, independent of the gravity (m/s²) ...
Measures the direction and intensity of gravity, independent of device acceleration (m/s²) ...
Keep last – the total number of sensor types.