class RubyHid::Axis

An axis is a continuous control coming from a HID device. These are most often the output from joysticks.

The most common values for axes range from 0 to 255. In this case the central (resting) position is 128.

Axis includes d-pad axes, which have a distinctly different set of values.

Constants

DPAD_KEYS
EVENTS

List of Axes, with names

Naming is mostly the stick name followed by x or y for the direction.

Public Instance Methods

to_s() click to toggle source

Quick summary of the button

# File lib/ruby_hid/axis.rb, line 40
def to_s
  "Axis: #{code} - #{name}"
end