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

Class Method Details

.available?(type) ⇒ Boolean

Tell if a sensor is available

Parameters:

  • type (Integer)

    type of sensor

Returns:

  • (Boolean)


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

Parameters:

  • type (Integer)

    sensor type

  • enabled (Boolean)

    enable state of the sensor

Returns:

  • (self)


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

Parameters:

  • type (Integer)

    sensor type

Returns:

  • (Array<Float>)

    x, y, z value of the sensor



1450
1451
1452
# File 'LiteRGSS.rb.yard.rb', line 1450

def self.value(type)

end