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

Add positional input visualization test #77

Merged
merged 3 commits into from
May 21, 2024

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented May 21, 2024

The test listens for mouse, touch (finger) and pen events and draws them on the screen. Each input type has a different look, and each SDL_*ID gets a different colour. Just some rectangles as drawing text is hard.

This new test uses SDL3 main callback functions. It's an interesting idea, similar to how we delegate running the main thread to the iOS display link/callback thingy in o!f.

Sample video of how the test looks when interacting with a touchpad and tablet:

out.mp4

@smoogipoo smoogipoo merged commit e6dff89 into ppy:master May 21, 2024
1 check passed
@Susko3 Susko3 deleted the add-input-visualisation-test branch May 21, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants