Home » Community » Newbie corner » How to monitor key release event?
How to monitor key release event? [message #43049] |
Sun, 27 April 2014 01:01 |
|
Klugier
Messages: 1083 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I am writing small platformer game with map editor and I would like to handle key release events. Is there any way to do this in current version of U++?
What I have spied is that Ctrl::Key(dword key, int count) returns two events(X11):
Key: 130897, 1 // <- Key press event.
Key: 1179475, 1 // <- Key release event.
Of course I can handle it manually (by absolute key value), but it isn't elegant solution and probably it isn't platform independent.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 27 April 2014 01:04] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:24:07 CET 2024
Total time taken to generate the page: 0.01010 seconds
|