The QInputEvent
's timestamp()
method "Returns the window system's timestamp for this event."
The return type is ulong
, and contains milliseconds but the native timestamp on android is int64_t
and contains nanoseconds.
Can I get timestamps with micro or nanosecond resolution for events in Qt?
I couldn't find the source code which sets the timestamp on QInputEvent
on Android. Where is it? Maybe I could patch Qt to have an extra field with the nanosecond timestamp.