Created
February 28, 2012 11:44
-
-
Save vext01/1932078 to your computer and use it in GitHub Desktop.
joystick test on amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hardware looks like this: | |
------------------------ | |
uhidev2 at uhub8 port 1 configuration 1 interface 1 "Dell Dell Multimedia Pro Keyboard" rev 1.10/59.00 addr 3 | |
uhidev2: iclass 3/0, 3 report ids | |
uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0 | |
uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0 | |
uhid2 at uhidev2 reportid 3: input=3, output=0, feature=0 | |
uhidev3 at uhub5 port 2 configuration 1 interface 0 "vendor 0x0810 Twin USB Gamepad" rev 1.00/1.06 addr 2 | |
uhidev3: iclass 3/0, 2 report ids | |
uhid3 at uhidev3 reportid 1: input=7, output=4, feature=0 | |
uhid4 at uhidev3 reportid 2: input=7, output=4, feature=0 | |
------------------------------ | |
./joy 0 | |
% ./joy 0 | |
trying to open js device #0 | |
index 0: /dev/uhid0 | |
reverse index: 0 | |
axes: 0 | |
buttons: 0 | |
1 joystick(s) found | |
% ./joy 1 | |
trying to open js device #1 | |
index 1: /dev/uhid1 | |
reverse index: 1 | |
axes: 0 | |
buttons: 0 | |
1 joystick(s) found | |
% ./joy 2 | |
trying to open js device #2 | |
index 2: /dev/uhid2 | |
reverse index: 2 | |
axes: 0 | |
buttons: 0 | |
1 joystick(s) found | |
% ./joy 3 | |
trying to open js device #3 | |
index 3: Joystick (3) | |
reverse index: 3 | |
axes: 2 | |
buttons: 10 | |
- axis 1: 0 | |
- axis 0: 0 | |
- button 9: 0 | |
- button 8: 0 | |
- button 7: 0 | |
- button 6: 0 | |
- button 5: 0 | |
- button 4: 0 | |
- button 3: 0 | |
- button 2: 0 | |
- button 1: 0 | |
- button 0: 0 | |
1 joystick(s) found | |
AXIS index=3 axis=0 value=-256 | |
AXIS index=3 axis=1 value=-256 | |
BUTTON index=3 button=2 state=1 | |
BUTTON index=3 button=2 state=0 | |
AXIS index=3 axis=0 value=32512 | |
AXIS index=3 axis=0 value=-256 | |
AXIS index=3 axis=0 value=32512 | |
AXIS index=3 axis=0 value=-256 | |
AXIS index=3 axis=0 value=32512 | |
AXIS index=3 axis=1 value=-32768 | |
AXIS index=3 axis=0 value=-256 | |
AXIS index=3 axis=0 value=32512 | |
AXIS index=3 axis=0 value=-256 | |
AXIS index=3 axis=0 value=32512 | |
AXIS index=3 axis=0 value=-256 | |
AXIS index=3 axis=0 value=32512 | |
--------------------------------------- | |
Yet in the dgenrc: | |
# Use a joystick? | |
bool_joystick = yes | |
int_joystick1_dev = 3 | |
int_joystick2_dev = 1 | |
% ~/source/dgen-sdl/dgen ~/roms/Sonic\ the\ Hedgehog\ 3.bin | |
rc: dgenrc:154:18: unknown key `bool_opengl_ratio' | |
video: 640x480, 16 bpp (2 Bpp), 60Hz | |
video: OpenGL texture 512x256x2 (320x229) | |
system has 4 potential joystick devices | |
joystick: Using Joystick (3) (#3) as pad1 and /dev/uhid1 (#1) as pad2 | |
jpystick does not work after this.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment