projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed variable
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index 9966905b6286a496ee0a97868b2990105d6dc98a..17f528e9415aadc78f26f411a7d550e5292c2553 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-1607,6
+1607,14
@@
void HandleUserEvent(UserEvent *event)
{
switch (event->code)
{
{
switch (event->code)
{
+ case USEREVENT_ANIM_EVENT_ACTION:
+ // execute action functions until matching action was found
+ if (DoKeysymAction(event->value1) ||
+ DoGadgetAction(event->value1) ||
+ DoScreenAction(event->value1))
+ return;
+ break;
+
default:
break;
}
default:
break;
}
@@
-2145,9
+2153,12
@@
void HandleKey(Key key, int key_status)
return;
}
return;
}
- if (HandleGlobalAnimClicks(-1, -1, (key == KSYM_space ||
- key == KSYM_Return ||
- key == KSYM_Escape), TRUE))
+ // some key events are handled like clicks for global animations
+ boolean click = (key == KSYM_space ||
+ key == KSYM_Return ||
+ key == KSYM_Escape);
+
+ if (click && HandleGlobalAnimClicks(-1, -1, MB_LEFTBUTTON, TRUE))
{
// do not handle this key event anymore
if (key != KSYM_Escape) // always allow ESC key to be handled
{
// do not handle this key event anymore
if (key != KSYM_Escape) // always allow ESC key to be handled