Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
Fix buttons bit mask
Browse files Browse the repository at this point in the history
  • Loading branch information
v1993 committed Sep 15, 2019
1 parent a00a4d4 commit ecd4d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ local function sendReport(id, desc, wiistate, clients, battery)
(key 'options' and 0x08 or 0x00) |
(key 'R3' and 0x04 or 0x00) |
(key 'L3' and 0x02 or 0x00) |
(key 'share' and 0x02 or 0x00) ,
(key 'share' and 0x01 or 0x00) ,

(key 'Y' and 0x80 or 0x00) |
(key 'B' and 0x40 or 0x00) |
Expand All @@ -281,7 +281,7 @@ local function sendReport(id, desc, wiistate, clients, battery)
(key 'R1' and 0x08 or 0x00) |
(key 'L1' and 0x04 or 0x00) |
(key 'R2' and 0x02 or 0x00) |
(key 'L2' and 0x02 or 0x00) ,
(key 'L2' and 0x01 or 0x00) ,

-- PS and Touch
'\0\0',
Expand Down

0 comments on commit ecd4d93

Please sign in to comment.