Skip to content
Snippets Groups Projects
Commit e06efdd2 authored by deuce's avatar deuce
Browse files

Added ciolib_addevent() and ciolib_delevent() for simpler event mask manupulation.

parent 39d516f7
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,18 @@ int ciomouse_delevents(int events) ...@@ -134,6 +134,18 @@ int ciomouse_delevents(int events)
return mouse_events; return mouse_events;
} }
int ciomouse_addevent(int event)
{
mouse_events |= (1<<event);
return mouse_events;
}
int ciomouse_delevent(int event)
{
mouse_events &= ~(1<<event);
return mouse_events;
}
void ciomouse_gotevent(int event, int x, int y) void ciomouse_gotevent(int event, int x, int y)
{ {
struct in_mouse_event *ime; struct in_mouse_event *ime;
......
...@@ -105,6 +105,8 @@ void ciolib_mouse_thread(void *data); ...@@ -105,6 +105,8 @@ void ciolib_mouse_thread(void *data);
int ciomouse_setevents(int events); int ciomouse_setevents(int events);
int ciomouse_addevents(int events); int ciomouse_addevents(int events);
int ciomouse_delevents(int events); int ciomouse_delevents(int events);
int ciomouse_addevent(int event);
int ciomouse_delevent(int event);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment