SFML
Simple and Fast Multimedia Library
Loading...
Searching...
No Matches
Sensor.hpp File Reference
Include dependency graph for Sensor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sf
namespace  sf::Sensor
 Give access to the real-time state of the sensors.

Enumerations

enum class  sf::Sensor::Type {
  sf::Sensor::Accelerometer , sf::Sensor::Gyroscope , sf::Sensor::Magnetometer , sf::Sensor::Gravity ,
  sf::Sensor::UserAcceleration , sf::Sensor::Orientation
}
 Sensor type. More...

Functions

SFML_WINDOW_API bool sf::Sensor::isAvailable (Type sensor)
 Check if a sensor is available on the underlying platform.
SFML_WINDOW_API void sf::Sensor::setEnabled (Type sensor, bool enabled)
 Enable or disable a sensor.
SFML_WINDOW_API Vector3f sf::Sensor::getValue (Type sensor)
 Get the current sensor value.