Skip to content
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

Timestamp mouse, keyboard, and touch inputs with Instant::now #9088

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cryslith
Copy link

@cryslith cryslith commented Jul 9, 2023

Objective

Solution

Add time: Option<Instant> to KeyboardInput, MouseButtonInput, MouseWheel, MouseMotion, TouchInput, CursorMoved events. Populate this with calls to Instant::now() in winit event loop.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2023

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-Input Player input via keyboard, mouse, gamepad, and more labels Jul 10, 2023
@BenjaminBrienen BenjaminBrienen added D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more C-Feature A new feature, making something new possible D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants