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
1437 1438 1439 |
# File 'LiteRGSS.rb.yard.rb', line 1437 def self.available?(type) end |
.set_enabled(type, enabled) ⇒ self
Set the enabled state of a sensor
1444 1445 1446 |
# File 'LiteRGSS.rb.yard.rb', line 1444 def self.set_enabled(type, enabled) end |
.value(type) ⇒ Array<Float>
Get the current value of the sensor
1450 1451 1452 |
# File 'LiteRGSS.rb.yard.rb', line 1450 def self.value(type) end |