Need remove the flag after every redraw.
[eco.git] / key.h
blob1859e48f4367734c65c074f27b813547be9b5412
1 /*
2 * Copyright (C) 2008 Diego Hernan Borghetti.
3 * Eco
4 */
6 #ifndef _ECO_KEY_H
7 #define _ECO_KEY_H
9 typedef struct _E_Key {
10 struct _E_Key *next;
12 /* need ctrl + X ? */
13 short ctrl_x;
15 /* key code. */
16 short code;
18 /* callback. */
19 void (*exec)(E_Eco *);
20 } E_Key;
22 void e_key_free(void);
24 void e_key_add(short code, short ctrl_x, void (*cb)(E_Eco *));
25 void e_key_remove(short code, short ctrl_x);
26 int e_key_exec(E_Eco *ec, short code, short ctrl_x);
28 #endif /* _ECO_KEY_H */