Skip to content

abstract struct SF::Event::SensorEvent
inherits SF::Event #

Sensor event parameters (see SensorChanged)

Direct known subclasses

SF::Event::SensorChanged

Constructors#

Methods#

#dup : SensorEvent#

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.

View source

#type : Sensor::Type#

Type of the sensor

View source

#type=(type : Sensor::Type)#

View source

#x : Float32#

Current value of the sensor on X axis

View source

#x=(x : Number)#

View source

#y : Float32#

Current value of the sensor on Y axis

View source

#y=(y : Number)#

View source

#z : Float32#

Current value of the sensor on Z axis

View source

#z=(z : Number)#

View source