FDOSTUI
FreeDOS Text User Interface
|
mouse routines More...
Go to the source code of this file.
Classes | |
struct | mouse_event |
contianer for mouse event More... | |
Functions | |
int | mouse_get_event (struct mouse_event __FAR *o_event) |
retrieves a mouse event from the queue More... | |
int | mouse_init () |
initializes the mouse More... | |
void | mouse_deinit () |
clean up the mouse handler More... | |
void | mouse_show () |
shows the mouse cursor | |
void | mouse_hide () |
hides the mouse cursor More... | |
Variables | |
short int | mouse_initialized |
mouse routines
void mouse_deinit | ( | ) |
clean up the mouse handler
This routine can safely be called after a failed call to mouse_init. It checks the mouse_initialized flag, and if set will uninstall the handler and clean up the queue.
int mouse_get_event | ( | struct mouse_event __FAR * | o_event | ) |
retrieves a mouse event from the queue
[out] | o_event | event structure to fill |
void mouse_hide | ( | ) |
hides the mouse cursor
int mouse_init | ( | ) |
initializes the mouse
This routine initializes the mouse handler and queue. It must only be called once. Equally important is to invoke mouse_deinit when finished. This removes the interrupt handler. Otherwise, after the application exists, and a mouse event occurs it will crash the system.
mouse_initialized |
indicator if mouse has been initialized