From c8e6b4e8dba5af2344def348e01306f7f1c2973f Mon Sep 17 00:00:00 2001 From: zsccat Date: Thu, 4 Jun 2020 12:47:46 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'source-code/data/plugins'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add generic usb game controller support. genericusbinput.ini contains the VID and PID for the game controller --- source-code/data/plugins/genericusbinput.ini | 6 ++++++ source-code/data/plugins/keyconfig.ini | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 source-code/data/plugins/genericusbinput.ini diff --git a/source-code/data/plugins/genericusbinput.ini b/source-code/data/plugins/genericusbinput.ini new file mode 100644 index 0000000..2062a67 --- /dev/null +++ b/source-code/data/plugins/genericusbinput.ini @@ -0,0 +1,6 @@ +#Check you Vendor ID and Product ID in Device Manager or dxdiag tool + +[genericusbinput] + +VID = 046D +PID = C216 diff --git a/source-code/data/plugins/keyconfig.ini b/source-code/data/plugins/keyconfig.ini index 018431d..bcbeaea 100644 --- a/source-code/data/plugins/keyconfig.ini +++ b/source-code/data/plugins/keyconfig.ini @@ -114,3 +114,17 @@ RIGHT_SIDE_SLIDE_RIGHT = O, Ds4_R_Stick_Right, XINPUT_RRIGHT # - Right Joystick # "XINPUT_RLEFT", "XINPUT_RRIGHT", "XINPUT_RUP", "XINPUT_RDOWN", "XINPUT_RSB" + +# --- Generic USB BUTTON NAMES: --- + +# - Standard Buttons (Button number in "Game controller settings", max allowed 13 buttons at the moment) +# "GU_BUTTON1", "GU_BUTTON2", "GU_BUTTON3", "GU_BUTTON4", "GU_BUTTON5", "GU_BUTTON6", "GU_BUTTON7", "GU_BUTTON8", "GU_BUTTON9", "GU_BUTTON10", "GU_BUTTON11", "GU_BUTTON12", "GU_BUTTON13" + +# - D-Pad Directions +# "GU_DPAD_UP", "GU_DPAD_RIGHT", "GU_DPAD_DOWN", "GU_DPAD_LEFT" + +# - Left Joystick +# "GU_L_STICK_UP", "GU_L_STICK_RIGHT", "GU_L_STICK_DOWN", "GU_L_STICK_LEFT" + +# - Right Joystick +# "GU_R_STICK_UP", "GU_R_STICK_RIGHT", "GU_R_STICK_DOWN", "GU_R_STICK_LEFT"