mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
Revert "d/survive: ajust timestamp from button event"
This reverts commit b396c200d0
.
The issue has been fixed in libsurvive [1]
[1]: https://github.com/cntools/libsurvive/pull/250
This commit is contained in:
parent
a19f13171b
commit
4e4e6708bc
|
@ -615,9 +615,8 @@ _calculate_squeeze_value(struct survive_device *survive)
|
|||
static void
|
||||
_process_button_event(struct survive_device *survive, const struct SurviveSimpleButtonEvent *e)
|
||||
{
|
||||
// Survive sends button event time relative to the start of the recording
|
||||
timepoint_ns ts = os_monotonic_get_ns() - time_s_to_ns(e->time);
|
||||
|
||||
timepoint_ns ts = survive_timecode_to_monotonic(e->time);
|
||||
;
|
||||
if (e->event_type == SURVIVE_INPUT_EVENT_AXIS_CHANGED) {
|
||||
for (int i = 0; i < e->axis_count; i++) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue