From 1fd40772b49a4c8b765da151ad7fe9644f696fc4 Mon Sep 17 00:00:00 2001 From: mv Date: Sun, 31 May 2020 19:09:11 +0200 Subject: [PATCH] Create config for generic usb zero delay encoder lsusb name: DragonRise Inc. PC TWIN SHOCK Gamepad --- ...der (DragonRise PC TWIN SHOCK Gamepad).ini | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 generic_usb_zero_delay_usb_encoder (DragonRise PC TWIN SHOCK Gamepad).ini diff --git a/generic_usb_zero_delay_usb_encoder (DragonRise PC TWIN SHOCK Gamepad).ini b/generic_usb_zero_delay_usb_encoder (DragonRise PC TWIN SHOCK Gamepad).ini new file mode 100644 index 0000000..815ceae --- /dev/null +++ b/generic_usb_zero_delay_usb_encoder (DragonRise PC TWIN SHOCK Gamepad).ini @@ -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