class Tinkerforge::BrickletJoystickV2

Public Instance Methods

state() click to toggle source

Returns the device's state.

Calls superclass method
# File lib/tinderfridge/devices/bricklet_joystick_v2/bricklet_joystick_v2.rb, line 6
def state
  super.merge(
    'position' => get_position,
    'pressed'  => is_pressed,
  )
end