drive triggers pressed bit
This commit is contained in:
parent
54e8c97d9f
commit
2efde82d1d
1 changed files with 2 additions and 2 deletions
|
|
@ -576,8 +576,8 @@ static uint8_t get_buttons_byte2_by_gs(const gamepad_status_t *const gs) {
|
|||
res |= gs->share ? 0x20 : 0x00;
|
||||
res |= gs->option ? 0x10 : 0x00;
|
||||
|
||||
//res |= gs->l2 ? 0x08 : 0x00;
|
||||
//res |= gs->r2 ? 0x04 : 0x00;
|
||||
res |= gs->r2_trigger > 200 ? 0x08 : 0x00;
|
||||
res |= gs->l2_trigger > 200 ? 0x04 : 0x00;
|
||||
res |= gs->r1 ? 0x02 : 0x00;
|
||||
res |= gs->l1 ? 0x01 : 0x00;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue