controller_patcher_configs/generic_usb_zero_delay_usb_encoder (DragonRise PC TWIN SHOCK Gamepad).ini
mv 1fd40772b4 Create config for generic usb zero delay encoder
lsusb name: DragonRise Inc. PC TWIN SHOCK Gamepad
2023-04-30 12:52:03 +02:00

32 lines
1.0 KiB
INI

//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