mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 13:16:38 +00:00
d/psmv: Fix timestamp parsing (ZCM1)
This commit is contained in:
parent
f123c41146
commit
63d62cf4fe
|
@ -1263,8 +1263,9 @@ psmv_parse_input_zcm1(struct psmv_device *psmv,
|
|||
input->buttons |= data->buttons[1] << 16;
|
||||
input->buttons |= data->buttons[2] << 8;
|
||||
input->buttons |= data->buttons[3] & 0xf0;
|
||||
input->timestamp |= data->timestamp_low;
|
||||
input->timestamp |= data->timestamp_high << 8;
|
||||
input->timestamp = 0;
|
||||
input->timestamp |= (uint16_t)data->timestamp_low;
|
||||
input->timestamp |= ((uint16_t)data->timestamp_high) << 8;
|
||||
|
||||
input->trigger_values[0] = data->trigger_f1;
|
||||
input->trigger_values[1] = data->trigger_f2;
|
||||
|
|
Loading…
Reference in a new issue