Thread (31 messages) 31 messages, 8 authors, 2013-09-07

Re: Game Controllers

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2013-05-02 17:01:07

On Thu, May 02, 2013 at 09:46:44AM -0400, Todd Showalter wrote:
left stick: ABS_X, ABS_Y
right stick: ABS_RX, ABS_RY
Not sure about this one. Originally RX, RY and RZ were introduces for
device having more than 3 degress of freedom; and RX is used by many
joystick devices. We'd ether need a property bit to distinguish gamepad
from a joystick or simply ass ABS_X2, ABS_Y2 etc for the second stick.
dpad: ABS_HAT0X, ABS_HAT0Y
left trigger: ABS_Z
Huh?
right trigger: ABS_RZ
Not at all. These are not absolute events but rather buttons, so let's
define them as such.
start button: BTN_START
system button: BTN_SYSTEM
four face buttons: BTN_NORTH, BTN_EAST, BTN_SOUTH, BTN_WEST
two shoulder buttons: BTN_TL, BTN_TR
two stick click buttons: BTN_THUMBL, BTN_THUMBR
Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help