mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Fix Pointer Id in Feedback History
This commit is contained in:
parent
f3be4ed22a
commit
e0db330924
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ CHIAKI_EXPORT void chiaki_feedback_history_event_set_touchpad(ChiakiFeedbackHist
|
|||
{
|
||||
event->len = 5;
|
||||
event->buf[0] = down ? 0xd0 : 0xc0;
|
||||
event->buf[1] = pointer_id / 0x7f;
|
||||
event->buf[1] = pointer_id & 0x7f;
|
||||
event->buf[2] = (uint8_t)(x >> 4);
|
||||
event->buf[3] = (uint8_t)((x & 0xf) << 4) | (uint8_t)(y >> 8);
|
||||
event->buf[4] = (uint8_t)y;
|
||||
|
|
|
@ -275,4 +275,4 @@ static void *feedback_sender_thread_func(void *user)
|
|||
chiaki_mutex_unlock(&feedback_sender->state_mutex);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue