mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-26 00:16:33 +00:00
joycon: Fix controller button masking
Previously if the Right JC was missing it would clear the Capture button that's on the Left one
This commit is contained in:
parent
5a6608dff4
commit
bbc3f41493
@ -33,32 +33,32 @@
|
|||||||
// For disabling driver when logging is enabled.
|
// For disabling driver when logging is enabled.
|
||||||
#include <libs/lv_conf.h>
|
#include <libs/lv_conf.h>
|
||||||
|
|
||||||
#define JC_WIRED_CMD 0x91
|
#define JC_WIRED_CMD 0x91
|
||||||
#define JC_WIRED_HID 0x92
|
#define JC_WIRED_HID 0x92
|
||||||
#define JC_WIRED_INIT_REPLY 0x94
|
#define JC_WIRED_INIT_REPLY 0x94
|
||||||
#define JC_INIT_HANDSHAKE 0xA5
|
#define JC_INIT_HANDSHAKE 0xA5
|
||||||
|
|
||||||
#define JC_WIRED_CMD_MAC 0x01
|
#define JC_WIRED_CMD_MAC 0x01
|
||||||
#define JC_WIRED_CMD_10 0x10
|
#define JC_WIRED_CMD_10 0x10
|
||||||
|
|
||||||
#define JC_HID_OUTPUT_RPT 0x01
|
#define JC_HID_OUTPUT_RPT 0x01
|
||||||
#define JC_HID_RUMBLE_RPT 0x10
|
#define JC_HID_RUMBLE_RPT 0x10
|
||||||
|
|
||||||
#define JC_HID_INPUT_RPT 0x30
|
#define JC_HID_INPUT_RPT 0x30
|
||||||
#define JC_HID_SUBMCD_RPT 0x21
|
#define JC_HID_SUBMCD_RPT 0x21
|
||||||
|
|
||||||
#define JC_HID_SUBCMD_HCI_STATE 0x06
|
#define JC_HID_SUBCMD_HCI_STATE 0x06
|
||||||
#define HCI_STATE_SLEEP 0x00
|
#define HCI_STATE_SLEEP 0x00
|
||||||
#define HCI_STATE_RECONNECT 0x01
|
#define HCI_STATE_RECONNECT 0x01
|
||||||
#define HCI_STATE_PAIR 0x02
|
#define HCI_STATE_PAIR 0x02
|
||||||
#define HCI_STATE_HOME 0x04
|
#define HCI_STATE_HOME 0x04
|
||||||
#define JC_HID_SUBCMD_SPI_READ 0x10
|
#define JC_HID_SUBCMD_SPI_READ 0x10
|
||||||
#define SPI_READ_OFFSET 0x20
|
#define SPI_READ_OFFSET 0x20
|
||||||
#define JC_HID_SUBCMD_RUMBLE_CTL 0x48
|
#define JC_HID_SUBCMD_RUMBLE_CTL 0x48
|
||||||
#define JC_HID_SUBCMD_SND_RUMBLE 0xFF
|
#define JC_HID_SUBCMD_SND_RUMBLE 0xFF
|
||||||
|
|
||||||
#define JC_BTN_MASK_L 0xFF2900 // 0xFFE900: with charge status.
|
#define JC_BTN_MASK_L 0xFF2900 // 0xFFE900: with charge status.
|
||||||
#define JC_BTN_MASK_R 0x76FF
|
#define JC_BTN_MASK_R 0x0056FF
|
||||||
|
|
||||||
#define JC_ID_L 1
|
#define JC_ID_L 1
|
||||||
#define JC_ID_R 2
|
#define JC_ID_R 2
|
||||||
|
Loading…
Reference in New Issue
Block a user