Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***Key comparisons : Hex's source***
- `cat - | ./sdl_interface 1 1 nearest | xxd -c 5`
- Exit using Ctrl+D in terminal running the above command
- **Xbox Controller**
- ABCD EFGH IJ
- A -> Joystick (1), Keyboard (0)
- B -> Clicked (1), Released (0)
- EF -> DPad
- GH -> Analog stick + Triggers
- IJ -> Buttons + Center Clicks
- Left Joy
- Up
- 00000000: 1100 0003 00 .....
- 00000005: 1000 0004 00 .....
- Down
- 0000000a: 1100 0005 00 .....
- 0000000f: 1000 0004 00 .....
- Left
- 00000014: 1100 0000 00 .....
- 00000019: 1000 0001 00 .....
- Right
- 0000001e: 1100 0002 00 .....
- 00000023: 1000 0001 00 .....
- Center click
- 00000028: 1100 0000 09 .....
- 0000002d: 1000 0000 09 .....
- Right Joy
- Up
- 00000000: 1100 000c 00 .....
- 00000005: 1000 000d 00 .....
- Down
- 0000000a: 1100 000e 00 .....
- 0000000f: 1000 000d 00 .....
- Left
- 00000014: 1100 0009 00 .....
- 00000019: 1000 000a 00 .....
- Right
- 0000001e: 1100 000b 00 .....
- 00000023: 1000 000a 00 .....
- Center click
- 00000028: 1100 0000 0a .....
- 0000002d: 1000 0000 0a .....
- DPad
- Up
- 00000032: 1100 0100 00 .....
- 00000037: 1000 0000 00 .....
- Down
- 0000003c: 1100 0400 00 .....
- 00000041: 1000 0000 00 .....
- Left
- 00000046: 1100 0800 00 .....
- 0000004b: 1000 0000 00 .....
- Right
- 00000050: 1100 0200 00 .....
- 00000055: 1000 0000 00 .....
- Buttons
- A
- 00000096: 1100 0000 00 .....
- 0000009b: 1000 0000 00 .....
- B
- 000000a0: 1100 0000 01 .....
- 000000a5: 1000 0000 01 .....
- X
- 000000aa: 1100 0000 02 .....
- 000000af: 1000 0000 02 .....
- Y
- 000000b4: 1100 0000 03 .....
- 000000b9: 1000 0000 03 .....
- START
- 000000be: 1100 0000 07 .....
- 000000c3: 1000 0000 07 .....
- BACK
- 000000c8: 1100 0000 06 .....
- 000000cd: 1000 0000 06 .....
- Left Shoulder
- 000000d2: 1100 0000 04 .....
- 000000d7: 1000 0000 04 .....
- Right Shoulder
- 000000dc: 1100 0000 05 .....
- 000000e1: 1000 0000 05 .....
- Triggers
- Left
- 000000ff: 1000 0007 00 .....
- 00000104: 1100 0008 00 .....
- 00000109: 1000 0007 00 .....
- 0000010e: 1100 0006 00 .....
- Right
- 0000012c: 1000 0010 00 .....
- 00000131: 1100 0011 00 .....
- 00000136: 1000 0010 00 .....
- 0000013b: 1100 000f 00 .....
- **SNES Controller**
- ABCD EFGH IJ
- A -> Joystick (1), Keyboard (0)
- B -> Clicked (1), Released (0)
- GH -> DPad
- IJ -> Buttons
- DPad
- Up
- 00000000: 1100 0003 00 .....
- 00000005: 1000 0004 00 .....
- Down
- 0000000a: 1100 0005 00 .....
- 0000000f: 1000 0004 00 .....
- Left
- 00000014: 1100 0000 00 .....
- 00000019: 1000 0001 00 .....
- Right
- 0000001e: 1100 0002 00 .....
- 00000023: 1000 0001 00 .....
- Buttons
- A
- 00000028: 1100 0000 01 .....
- 0000002d: 1000 0000 01 .....
- B
- 00000032: 1100 0000 02 .....
- 00000037: 1000 0000 02 .....
- X
- 0000003c: 1100 0000 00 .....
- 00000041: 1000 0000 00 .....
- Y
- 00000046: 1100 0000 03 .....
- 0000004b: 1000 0000 03 .....
- Start
- 00000050: 1100 0000 09 .....
- 00000055: 1000 0000 09 .....
- Select
- 0000005a: 1100 0000 08 .....
- 0000005f: 1000 0000 08 .....
- Left Shoulder
- 00000064: 1100 0000 04 .....
- 00000069: 1000 0000 04 .....
- Right Shoulder
- 0000006e: 1100 0000 05 .....
- 00000073: 1000 0000 05 .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement