forked from kofal.net/zmk
feat(events): add timestamp to keycode_state_changed and sensor_event
These timestamps are necessary to correctly deal with delayed events due to hold-tap shenanigans.
This commit is contained in:
committed by
Pete Johanson
parent
27d036b9d5
commit
bee45f9b3a
@@ -48,6 +48,7 @@ static void zmk_sensors_trigger_handler(struct device *dev, struct sensor_trigge
|
||||
event = new_sensor_event();
|
||||
event->sensor_number = item->sensor_number;
|
||||
event->sensor = dev;
|
||||
event->timestamp = k_uptime_get();
|
||||
|
||||
ZMK_EVENT_RAISE(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user