Fix Pointer Id in Feedback History

This commit is contained in:
Florian Märkl 2020-07-03 14:55:16 +02:00
commit e0db330924
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -275,4 +275,4 @@ static void *feedback_sender_thread_func(void *user)
chiaki_mutex_unlock(&feedback_sender->state_mutex);
return NULL;
}
}