41 #include "ctk-mouse.h"
43 #if CTK_CONF_MOUSE_SUPPORT
45 static struct mouse_pos pos;
52 struct mod_ctrl module_control = {cfs_read};
55 okay = module_control.callerdata >= 0;
57 okay = mod_load(&module_control) == MLOAD_OK;
59 okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK;
61 atexit((
void (*)(
void))mouse_uninstall);
63 mod_free(module_control.module);
89 ctk_mouse_button(
void)
92 return mouse_buttons();
98 ctk_mouse_xtoc(
unsigned short x)
100 return MOUSE_CONF_XTOC(x);
104 ctk_mouse_ytoc(
unsigned short y)
106 return MOUSE_CONF_YTOC(y);
int cfs_open(const char *name, int flags)
Open a file.
#define CFS_READ
Specify that cfs_open() should open a file for reading.
void cfs_close(int fd)
Close an open file.