Mirror of
forum.nim-lang.org
index
1144 :: Adding events for keyboard keypress and mouse click
[2015-04-19T15:10:29+02:00]
View Orginal
T
(orginal)
[2015-04-19T15:10:29+02:00]
view original
In the events module the example at the top shows an event being created and fired straight away, but how do you actually get an event to wait for and fire after receiving user input from a keyboard or mouse?
Araq
(orginal)
[2015-04-19T19:38:45+02:00]
view original
The events module doesn't handle user input events at all, you need to use other libraries like the Windows API, SDL or some other UI/gaming library.
T
(orginal)
[2015-04-19T20:35:48+02:00]
view original
Thanks Araq. It's good to know that there wasn't some
"
secret
"
way of doing it that I just wasn't aware of.