Create config for generic usb zero delay encoder

lsusb name: DragonRise Inc. PC TWIN SHOCK Gamepad
This commit is contained in:
mv 2020-05-31 19:09:11 +02:00 committed by Maschell
parent 50860b5f44
commit 1fd40772b4

View File

@ -0,0 +1,31 @@
//DragonRise Inc. PC TWIN SHOCK Gamepad
//Generic so called zero delay usb encoder (e.g. https://www.ebay.com/itm/Zero-Delay-LED-Arcade-MAME-Encoder-USB-To-PC-5Pin-Joystick-PCB-Board-Cables/263292913676?hash=item3d4d7b080c:m:mMQPf9TPDzotI0VP9pNM8CQ)
[vid=0x0079,pid=0x0006]
//DPad
DPAD_MODE = DPAD_Absolute_2Values
VPAD_BUTTON_DPAD_ABS_UP = 0x01, 0x00
VPAD_BUTTON_DPAD_ABS_DOWN = 0x01, 0xFF
VPAD_BUTTON_DPAD_ABS_LEFT = 0x00, 0x00
VPAD_BUTTON_DPAD_ABS_RIGHT = 0x00, 0xFF
//Button layout:
// o o
// Joy O O O O
// stick O O O O
//
// - +
// Y X ZL ZR
// B A L R
//Buttons
VPAD_BUTTON_A = 0x05, 0x2F
VPAD_BUTTON_B = 0x05, 0x1F
VPAD_BUTTON_X = 0x06, 0x02
VPAD_BUTTON_Y = 0x06, 0x01
VPAD_BUTTON_PLUS = 0x06, 0x20
VPAD_BUTTON_MINUS = 0x06, 0x10
VPAD_BUTTON_L = 0x05, 0x4F
VPAD_BUTTON_ZL = 0x06, 0x04
VPAD_BUTTON_R = 0x05, 0x8F
VPAD_BUTTON_ZR = 0x06, 0x08
PAD_COUNT=1