-
Notifications
You must be signed in to change notification settings - Fork 11
Timestamps on the events? #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, if we're to have a time stamp, I'd somewhat prefer using |
The problem with |
You could use |
Hmm, yeah. I guess |
Another thing to note is that there's many other fields on the inheritance chain of That of course still shouldn't be an argument against adding this if it's useful, just interesting to discuss. |
I don't have a strong opinion here either way, will let @pyfisch decide. |
I don't want to add timestamps (or other metadata) to the event type. Keyboard-types was designed with browser uses (in particular servo) in mind. While in JS you have an event class with attributes such as Let me know if that explanation was clear, you can also look up the event types in servo. |
Sounds good to me! Thanks! |
In the browser,
KeyEvent
andCompositionEvent
inherit fromEvent
which has a timestamp. In doing somePointerEvent
stuff, I have a timestamp available (since this is useful for doing predicted events from sequences of events).Would there be interest in adding a
timestamp: u64
toKeyEvent
andCompositionEvent
?The text was updated successfully, but these errors were encountered: