summaryrefslogtreecommitdiff
path: root/src/widget/widget_catchkey.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-29 14:08:35 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-29 14:08:35 +0000
commitc86df412753dc8e05eb1495ce82909a050b32d5a (patch)
tree10715827e94d082c569ad73f95c4c5124f4db574 /src/widget/widget_catchkey.c
parenteb71aa0d04d91d3463981e6ff304282c6f482087 (diff)
- klavesy sa daju po zmene hned pouzit a program sa nemusi restartovat
- oprava chyby, vo funkcii na ukladanie bol preklep a do konfiguracneho suboru sa klavesy na strielanie a menu zbrani ukladal do kluca s preklepom TUX_RIGHT_MOVE_SHOOT namiesto TUX_RIGHT_SHOOT git-svn-id: http://opensvn.csie.org/tuxanci_ng@178 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/widget/widget_catchkey.c')
-rw-r--r--src/widget/widget_catchkey.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widget/widget_catchkey.c b/src/widget/widget_catchkey.c
index afdac23..099a4e9 100644
--- a/src/widget/widget_catchkey.c
+++ b/src/widget/widget_catchkey.c
@@ -6,7 +6,7 @@
#include "font.h"
#include "widget_catchkey.h"
-widget_catchkey_t* newWidgetCatchkey(int key, int x, int y)
+widget_catchkey_t* newWidgetCatchkey(int key, int x, int y, void *event)
{
widget_catchkey_t *new;
@@ -15,6 +15,7 @@ widget_catchkey_t* newWidgetCatchkey(int key, int x, int y)
new->x = x;
new->y = y;
new->key = key;
+ new->fce_event = event;
return new;
}
@@ -94,6 +95,7 @@ void eventWidgetCatchkey(widget_catchkey_t *p)
if( key != WIDGET_CATCHKEY_NOKEY )
{
p->key = key;
+ p->fce_event(p);
}
}
}