Add Speedlink Hornet

This commit is contained in:
revvv 2022-02-25 13:51:33 +01:00 committed by GitHub
parent 145f62b8f5
commit 20c389f946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 0 deletions

35
Speedlink_Hornet.ini Normal file
View File

@ -0,0 +1,35 @@
// Speedlink Hornet
[vid=0x0079,pid=0x0011]
// NOTE: VID and PID are not unique!
// Other vendors use different button layouts!
//At first we set the dpad mode. This controller uses 2 bytes. One byte is for up(0x00)/down(0xFF) and the other for left(0x00)/right(0xFF).
DPAD_MODE = DPAD_Absolute_2Values
// byte-position / value
//Set dpad values. The values you need to set depend on the dpad mode.
VPAD_BUTTON_DPAD_ABS_UP = 0x04,0x00
VPAD_BUTTON_DPAD_ABS_DOWN = 0x04,0xFF
VPAD_BUTTON_DPAD_ABS_LEFT = 0x03,0x00
VPAD_BUTTON_DPAD_ABS_RIGHT = 0x03,0xFF
//Set normal buttons
VPAD_BUTTON_A = 0x05,0x2F
VPAD_BUTTON_B = 0x05,0x1F
VPAD_BUTTON_X = 0x06,0x01
VPAD_BUTTON_Y = 0x05,0x8F
VPAD_BUTTON_MINUS = 0x06,0x10
VPAD_BUTTON_PLUS = 0x06,0x20
//We only have 1 trigger on each side, lets always trigger both.
VPAD_BUTTON_R = 0x06,0x08
VPAD_BUTTON_ZR = 0x06,0x08
VPAD_BUTTON_L = 0x06,0x04
VPAD_BUTTON_ZL = 0x06,0x04
PAD_COUNT=1
// Additional buttons not used
//unused_6=0x06,0x02
//unused_3=0x05,0x4F