aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
1 stars 0 forks source link

Device events per Window #58

Open aconstlink opened 3 months ago

aconstlink commented 3 months ago

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 think no other than pointing devices requires a per window event!