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

Device events per Window #58

Open
aconstlink opened this issue Mar 4, 2024 · 0 comments
Open

Device events per Window #58

aconstlink opened this issue Mar 4, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@aconstlink
Copy link
Owner

Devices do not work per window. There is only one device system for all windows. So all devices are updated for multiple windows but if there is only one instance of a mouse for example, it couldn't be determined where the mouse is exactly. There is only the pointer coordinate but the user is unable to determine which window is meant.

I do not want a device system per window because that wouldn't work for gamepads which are global and it wouldn't exactly solve the problem of determining the window where device currently is. This kind of also applies to a scenario with multiple instances of the same mouse.

Because devices are kind of independent of windows but mouse like devices for example, the engine could somehow pass the current window id along with the run time.

  • I am thinking of a on_event call in the app at the highest level.
  • The on_event calls tell the user an enter or leave event by the pointer device.
  • The current window the device is hovering should be determined by the particular carrier which has all the platform window information

I think no other than pointing devices requires a per window event!

@aconstlink aconstlink added bug Something isn't working enhancement New feature or request labels Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant