prepare R5 and L5 logic
This commit is contained in:
parent
9445f4a379
commit
43130790f5
3 changed files with 10 additions and 1 deletions
|
|
@ -401,7 +401,12 @@ static int send_data(int fd, logic_t *const logic) {
|
|||
(gs.l3 ? 0x40 : 0x00) |
|
||||
(gs.r3 ? 0x80 : 0x00);
|
||||
|
||||
buf[10] = (gs.l4 ? 0x10 : 0x00) | (gs.r4 ? 0x20 : 0x00) | (gs.center ? 0x01 : 0x00);
|
||||
// mic button press is 0x04, touchpad press is 0x02
|
||||
buf[10] = (gs.l5 ? 0x40 : 0x00) |
|
||||
(gs.r5 ? 0x80 : 0x00) |
|
||||
(gs.l4 ? 0x10 : 0x00) |
|
||||
(gs.r4 ? 0x20 : 0x00) |
|
||||
(gs.center ? 0x01 : 0x00);
|
||||
//buf[11] = ;
|
||||
|
||||
//buf[12] = 0x20; // [12] battery level | this is called sensor_temparature in the kernel driver but is never used...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue