struct

SF::Event::SensorEvent

Inherits SF::Event / Struct / Value / Object

Sensor event parameters (see SensorChanged)

Constructors

Instance methods

dup

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

Source
type

Type of the sensor

Source
type=(type : Sensor::Type)
Source
x

Current value of the sensor on X axis

Source
x=(x : Number)
Source
y

Current value of the sensor on Y axis

Source
y=(y : Number)
Source
z

Current value of the sensor on Z axis

Source
z=(z : Number)
Source