Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dualsense controller #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions dualsense.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[vid=0x54c,pid=0x0ce6]
VPAD_BUTTON_A = 0x07,0x48
VPAD_BUTTON_B = 0x07,0x28
VPAD_BUTTON_X = 0x07,0x88
VPAD_BUTTON_Y = 0x07,0x18

VPAD_BUTTON_PLUS = 0x08,0x10
VPAD_BUTTON_MINUS = 0x08,0x20
VPAD_BUTTON_HOME = 0x09,0x01

VPAD_BUTTON_L = 0x08,0x01
VPAD_BUTTON_R = 0x08,0x02

VPAD_BUTTON_STICK_L = 0x08,0x40
VPAD_BUTTON_STICK_R = 0x08,0x80

//The "value" is a deadzone in this case
VPAD_BUTTON_ZL = 0x08,0x04
VPAD_BUTTON_ZR = 0x08,0x08

DPAD_MODE = DPAD_HAT
DPad_MASK = 0x0F
VPAD_BUTTON_DPAD_N = 0x07,0x00 // postion: 0x05, value: 0x00
VPAD_BUTTON_DPAD_NE = 0x07,0x01 // postion: 0x05, value: 0x01
VPAD_BUTTON_DPAD_E = 0x07,0x02 // postion: 0x05, value: 0x02
VPAD_BUTTON_DPAD_SE = 0x07,0x03 // postion: 0x05, value: 0x03
VPAD_BUTTON_DPAD_S = 0x07,0x04 // postion: 0x05, value: 0x04
VPAD_BUTTON_DPAD_SW = 0x07,0x05 // postion: 0x05, value: 0x05
VPAD_BUTTON_DPAD_W = 0x07,0x06 // postion: 0x05, value: 0x06
VPAD_BUTTON_DPAD_NW = 0x07,0x07 // postion: 0x05, value: 0x07
VPAD_BUTTON_DPAD_Neutral = 0x07,0x08 // postion: 0x05, value: 0x08

VPAD_L_STICK_X = 0x00,0x80
VPAD_L_STICK_X_MINMAX = 0x00,0xFF
VPAD_L_STICK_X_DEADZONE = 0x04


VPAD_L_STICK_Y = 0x01,0x80
VPAD_L_STICK_Y_MINMAX = 0x00,0xFF
VPAD_L_STICK_Y_DEADZONE = 0x04
VPad_L_Stick_Y_Invert = true

VPAD_R_STICK_X = 0x02,0x80
VPAD_R_STICK_X_MINMAX = 0x00,0xFF
VPAD_R_STICK_X_DEADZONE = 0x05

VPAD_R_STICK_Y = 0x03,0x80
VPAD_R_STICK_Y_MINMAX = 0x00,0xFF
VPAD_R_STICK_Y_DEADZONE = 0x05
VPad_R_Stick_Y_Invert = true

//This device is no adapter that can't have more than 1 pads.
PAD_COUNT = 0x01