Module: Sf::Sensor
- Defined in:
- LiteRGSS.rb.yard.rb
Overview
Sensor utility of SFML
Constant Summary collapse
- ACCELEROMETER =
Accelerometer sensor type
sf::Sensor::Type::Accelerometer
- GYROSCOPE =
Gyroscope sensor type
sf::Sensor::Type::Gyroscope
- MAGNETOMETER =
Magnetometer sensor type
sf::Sensor::Type::Magnetometer
- GRAVITY =
Gravity sensor type
sf::Sensor::Type::Gravity
- USER_ACCELERATION =
UserAcceleration sensor type
sf::Sensor::Type::UserAcceleration
- ORIENTATION =
Orientation sensor type
sf::Sensor::Type::Orientation
Class Method Summary collapse
-
.available?(type) ⇒ Boolean
Tell if a sensor is available.
-
.set_enabled(type, enabled) ⇒ self
Set the enabled state of a sensor.
-
.value(type) ⇒ Array<Float>
Get the current value of the sensor.
Class Method Details
.available?(type) ⇒ Boolean
Tell if a sensor is available
1435 1436 1437 |
# File 'LiteRGSS.rb.yard.rb', line 1435 def self.available?(type) end |
.set_enabled(type, enabled) ⇒ self
Set the enabled state of a sensor
1442 1443 1444 |
# File 'LiteRGSS.rb.yard.rb', line 1442 def self.set_enabled(type, enabled) end |
.value(type) ⇒ Array<Float>
Get the current value of the sensor
1448 1449 1450 |
# File 'LiteRGSS.rb.yard.rb', line 1448 def self.value(type) end |