Angband
ds_kbd.h
Go to the documentation of this file.
1 
2 #ifndef DS_KBD_H
3 #define DS_KBD_H
4 
5 /*#include "kbd_bin.h"
6 #include "kbd_s_bin.h"*/
7 
8 typedef struct {
9  u16 width;
10  u16 code;
11 } nds_kbd_key;
12 
13 void redraw_kbd(int);
14 void kbd_init();
15 u16 kbd_xy2key(u8 x, u8 y);
16 void kbd_togglemod(int which, int how);
17 void kbd_set_color_from_pos(u16 r, u16 k,u8 color);
18 void kbd_set_color_from_code(u16 code,u8 color);
19 
20 #define K_MODIFIER 0x100 // if set: it's shift or ctrl or alt
21 #define K_CAPS 0x101
22 #define K_SHIFT 0x102
23 #define K_CTRL 0x103
24 #define K_ALT 0x104
25 #define K_F(n) (0x200 + n)
26 #define K_SHIFTED_MOVE 0x0200
27 
28 
29 
30 #endif
31