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 
void redraw_kbd(int)
keycode_t code
Definition: ui-event.c:25
Definition: ds_kbd.h:8
void kbd_togglemod(int which, int how)
Definition: main-nds.c:366
u16 kbd_xy2key(u8 x, u8 y)
u16 code
Definition: ds_kbd.h:10
u16 width
Definition: ds_kbd.h:9
void kbd_init()
Definition: main-nds.c:1302
void kbd_set_color_from_pos(u16 r, u16 k, u8 color)
void kbd_set_color_from_code(u16 code, u8 color)