Angband
Data Structures | Macros | Functions
ds_kbd.h File Reference

Go to the source code of this file.

Data Structures

struct  nds_kbd_key
 

Macros

#define K_MODIFIER   0x100
 
#define K_CAPS   0x101
 
#define K_SHIFT   0x102
 
#define K_CTRL   0x103
 
#define K_ALT   0x104
 
#define K_F(n)   (0x200 + n)
 
#define K_SHIFTED_MOVE   0x0200
 

Functions

void redraw_kbd (int)
 
void kbd_init ()
 
u16 kbd_xy2key (u8 x, u8 y)
 
void kbd_togglemod (int which, int how)
 
void kbd_set_color_from_pos (u16 r, u16 k, u8 color)
 
void kbd_set_color_from_code (u16 code, u8 color)
 

Macro Definition Documentation

◆ K_ALT

#define K_ALT   0x104

Referenced by kbd_togglemod().

◆ K_CAPS

#define K_CAPS   0x101

Referenced by kbd_togglemod().

◆ K_CTRL

#define K_CTRL   0x103

Referenced by kbd_togglemod().

◆ K_F

#define K_F (   n)    (0x200 + n)

Referenced by kbd_vblank(), and kbd_xy2key().

◆ K_MODIFIER

#define K_MODIFIER   0x100

◆ K_SHIFT

#define K_SHIFT   0x102

Referenced by kbd_togglemod().

◆ K_SHIFTED_MOVE

#define K_SHIFTED_MOVE   0x0200

Function Documentation

◆ kbd_init()

void kbd_init ( )

References i.

Referenced by main().

◆ kbd_set_color_from_code()

void kbd_set_color_from_code ( u16  code,
u8  color 
)

◆ kbd_set_color_from_pos()

void kbd_set_color_from_pos ( u16  r,
u16  k,
u8  color 
)

◆ kbd_togglemod()

void kbd_togglemod ( int  which,
int  how 
)

◆ kbd_xy2key()

u16 kbd_xy2key ( u8  x,
u8  y 
)

◆ redraw_kbd()

void redraw_kbd ( int  )