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

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

Referenced by CheckEvents().

#define EVENT_SET   (1<<14)
#define EVENT_X (   e)    ((u8)((e) & 0x7F))

Referenced by CheckEvents().

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

Referenced by CheckEvents().

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

Referenced by CheckEvents().

#define LINE_LEN   85
#define LINE_LIMIT   ((LINE_LEN)-(MORE_LEN))
#define MAX_EBUF   512
#define MEVENT_FLAG   (1<<15)

Referenced by put_mouse_event().

#define MORE_LEN   8
#define MORE_MSG   "--More--"

Function Documentation

void do_more ( )
u16 get_event ( )

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

Referenced by CheckEvents().

bool has_event ( )

References ebuf_write, and EVENT_SET.

Referenced by CheckEvents(), and get_event().

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

Variable Documentation

short glyph2tile[]
bool nds_draw_text
struct window_procs nds_procs
u8 nds_updated

Referenced by kbd_vblank().