42 #include "ctk-mouse.h"
44 #if CTK_CONF_MOUSE_SUPPORT
46 static struct mouse_pos pos;
53 struct mod_ctrl module_control = {cfs_read};
56 okay = module_control.callerdata >= 0;
58 okay = mod_load(&module_control) == MLOAD_OK;
60 okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK;
62 atexit((
void (*)(
void))mouse_uninstall);
64 mod_free(module_control.module);
90 ctk_mouse_button(
void)
93 return mouse_buttons();
99 ctk_mouse_xtoc(
unsigned short x)
101 return MOUSE_CONF_XTOC(x);
105 ctk_mouse_ytoc(
unsigned short y)
107 return MOUSE_CONF_YTOC(y);