Closed xanderjakeq closed 1 year ago
device_state.get_keys()
from device_query
can be used within the update function of notan.
Hello @xanderjakeq, thanks reaching out, if getting the keys on the update method works for you that's great! Another option could be create a custom plugin, but it will need more boilerplate.
The default input events seem to only be detected when the window is focused. I want to listen to keyboard/mouse events even the window in unfocused. Is it possible to do that?
I saw this device_query crate, it can listen to keyboard events without needing a window. Is it possible to integrate this with notan?