keyboard-fw: make it so that the trackball buttons do what's said in the manual

This commit is contained in:
Lukas F. Hartmann 2024-05-31 20:52:24 +02:00
parent 9994da4dff
commit dd3034c994
No known key found for this signature in database
GPG Key ID: 376511EB67AD7BAF
1 changed files with 4 additions and 4 deletions

View File

@ -454,10 +454,10 @@ int tb_btn4 = 0;
// returns motion yes/no
static int poll_trackball()
{
tb_btn1 = matrix_state[KBD_COLS*5+3]>0;
tb_btn2 = matrix_state[KBD_COLS*5+4]>0;
tb_btn3 = matrix_state[KBD_COLS*5+7]>0;
tb_btn4 = matrix_state[KBD_COLS*5+8]>0;
tb_btn1 = matrix_state[KBD_COLS*5+3]>0; // left
tb_btn4 = matrix_state[KBD_COLS*5+4]>0; // middle
tb_btn3 = matrix_state[KBD_COLS*5+7]>0; // scroll
tb_btn2 = matrix_state[KBD_COLS*5+8]>0; // right
uint8_t buf[] = {0x7f, 0x00, 0x00, 0x00};