Main Page | Modules | Directories | File List | Globals

Event handling


Functions

unsigned int caca_get_event (unsigned int)
unsigned int caca_wait_event (unsigned int)
unsigned int caca_get_mouse_x (void)
 Return the X mouse coordinate.
unsigned int caca_get_mouse_y (void)
 Return the Y mouse coordinate.

Detailed Description

These functions handle user events such as keyboard input and mouse clicks.

Function Documentation

unsigned int caca_get_mouse_x void   ) 
 

This function returns the X coordinate of the mouse position last time it was detected. This function is not reliable if the ncurses or S-Lang drivers are being used, because mouse position is only detected when the mouse is clicked. Other drivers such as X11 work well.

Returns:
The X mouse coordinate.

unsigned int caca_get_mouse_y void   ) 
 

This function returns the Y coordinate of the mouse position last time it was detected. This function is not reliable if the ncurses or S-Lang drivers are being used, because mouse position is only detected when the mouse is clicked. Other drivers such as X11 work well.

Returns:
The Y mouse coordinate.