andlabs / libui

Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.
Other
10.72k stars 614 forks source link

Window Events #177

Open PaulBGD opened 8 years ago

PaulBGD commented 8 years ago

Currently there's not really a good way to listen to events that occur globally inside the window. Such as a mouse click, key press, or mouse movement. It'd be nice if some of the events we have for the area component were on the window as well.

andlabs commented 7 years ago

This depends on the order of event delivery, which probably varies from platform to platform. Let's look into it anyway.

andlabs commented 6 years ago

Actually wait, what would this be used for?

PaulBGD commented 6 years ago

For mouse clicks, it could be useful to detect when a mouse clicks anywhere in your application (even on the background.) With key presses, they could be used to detect shortcuts and such. For mouse movement, I'm sure there's several use cases such as how Putty generates entropy by having you move your mouse.

andlabs commented 6 years ago

Partial merge with andlabs/libui#325. I have other comments to make; will make them later.