Angband
Macros | Functions | Variables
ds_win.h File Reference

Go to the source code of this file.

Macros

#define MAX_EBUF   512
 
#define MEVENT_FLAG   (1<<15)
 
#define EVENT_SET   (1<<14)
 
#define EVENT_X(e)   ((u8)((e) & 0x7F))
 
#define EVENT_Y(e)   ((u8)(((e) & 0xF8) >> 7))
 
#define EVENT_C(e)   ((u8)((e) & 0xFF))
 
#define IS_MEVENT(e)   ((e) & MEVENT_FLAG)
 
#define MORE_MSG   "--More--"
 
#define MORE_LEN   8
 
#define LINE_LEN   85
 
#define LINE_LIMIT   ((LINE_LEN)-(MORE_LEN))
 

Functions

bool has_event ()
 
u16 get_event ()
 
void put_key_event (u8 c)
 
void put_mouse_event (u8 x, u8 y)
 
void more_print (const char *)
 
void do_more ()
 
void nds_raw_print (const char *)
 
void nds_raw_print_bold (const char *)
 
int nds_nhgetch (void)
 
void nds_getlin2 (const char *, char *, int)
 
void nds_exit_nhwindows (const char *)
 

Variables

struct window_procs nds_procs
 
bool nds_draw_text
 
u8 nds_updated
 
short glyph2tile []
 

Macro Definition Documentation

◆ EVENT_C

#define EVENT_C (   e)    ((u8)((e) & 0xFF))

Referenced by CheckEvents().

◆ EVENT_SET

#define EVENT_SET   (1<<14)

◆ EVENT_X

#define EVENT_X (   e)    ((u8)((e) & 0x7F))

Referenced by CheckEvents().

◆ EVENT_Y

#define EVENT_Y (   e)    ((u8)(((e) & 0xF8) >> 7))

Referenced by CheckEvents().

◆ IS_MEVENT

#define IS_MEVENT (   e)    ((e) & MEVENT_FLAG)

Referenced by CheckEvents().

◆ LINE_LEN

#define LINE_LEN   85

◆ LINE_LIMIT

#define LINE_LIMIT   ((LINE_LEN)-(MORE_LEN))

◆ MAX_EBUF

#define MAX_EBUF   512

◆ MEVENT_FLAG

#define MEVENT_FLAG   (1<<15)

Referenced by put_mouse_event().

◆ MORE_LEN

#define MORE_LEN   8

◆ MORE_MSG

#define MORE_MSG   "--More--"

Function Documentation

◆ do_more()

void do_more ( )

◆ get_event()

u16 get_event ( )

References ebuf_read, ebuf_write, has_event(), and MAX_EBUF.

Referenced by CheckEvents().

◆ has_event()

bool has_event ( )

References ebuf_write, and EVENT_SET.

Referenced by CheckEvents(), and get_event().

◆ more_print()

void more_print ( const char *  )

◆ nds_exit_nhwindows()

void nds_exit_nhwindows ( const char *  )

◆ nds_getlin2()

void nds_getlin2 ( const char *  ,
char *  ,
int   
)

◆ nds_nhgetch()

int nds_nhgetch ( void  )

◆ nds_raw_print()

void nds_raw_print ( const char *  )

◆ nds_raw_print_bold()

void nds_raw_print_bold ( const char *  )

◆ put_key_event()

void put_key_event ( u8  c)

◆ put_mouse_event()

void put_mouse_event ( u8  x,
u8  y 
)

Variable Documentation

◆ glyph2tile

short glyph2tile[]

◆ nds_draw_text

bool nds_draw_text

◆ nds_procs

struct window_procs nds_procs

◆ nds_updated

u8 nds_updated

Referenced by kbd_vblank().