From c86df412753dc8e05eb1495ce82909a050b32d5a Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 29 Jul 2008 14:08:35 +0000 Subject: - 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 --- src/widget/widget_catchkey.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/widget/widget_catchkey.h') diff --git a/src/widget/widget_catchkey.h b/src/widget/widget_catchkey.h index 0b8b080..d5f9a36 100644 --- a/src/widget/widget_catchkey.h +++ b/src/widget/widget_catchkey.h @@ -5,8 +5,8 @@ #include "main.h" -#define WIDGET_CATCHKEY_WIDTH 64 -#define WIDGET_CATCHKEY_HEIGHT 32 +#define WIDGET_CATCHKEY_WIDTH 110 +#define WIDGET_CATCHKEY_HEIGHT 12 #define WIDGET_CATCHKEY_NOKEY -1 @@ -16,9 +16,10 @@ typedef struct widget_catchkey_struct int w, h; int key; bool_t active; + void (*fce_event)(void *p); } widget_catchkey_t; -extern widget_catchkey_t* newWidgetCatchkey(int key, int x, int y); +extern widget_catchkey_t* newWidgetCatchkey(int key, int x, int y, void *event); extern int getWidgetCatchKey(widget_catchkey_t *p); extern void setWidgetCatchKey(widget_catchkey_t *p, int key); extern void drawWidgetCatchkey(widget_catchkey_t *p); -- cgit v1.2.3