Пример
#ifndef cmouse_h
#define cmouse_h
#include "cengine.h"
#include "cevent.h"
/* ==EVENT FUNCTIONS== */
mouse* mouse_event_get();
void mouse_event_update();
bool mouse_event_evented();
bool mouse_event_key();
bool mouse_event_wheel();
bool mouse_event_position();
vec2 mouse_event_position_xy(void);
float mouse_event_position_x(void);
float mouse_event_position_y(void);
vec2 mouse_event_position_xyrel(void);
float mouse_event_position_xrel(void);
float mouse_event_position_yrel(void);
bool mouse_event_keydown_left(void);
bool mouse_event_keydown_right(void);
bool mouse_event_keydown_middle(void);
bool mouse_event_keyup_left(void);
bool mouse_event_keyup_right(void);
bool mouse_event_keyup_middle(void);
bool mouse_event_wheel_up(void);
bool mouse_event_wheel_down(void);
bool mouse_event_wheel_left(void);
bool mouse_event_wheel_right(void);
/*== STATE RUNCTIONS ==*/
bool mouse_state_key_left(void);
bool mouse_state_key_right(void);
bool mouse_state_key_middle(void);
vec2 mouse_state_position_xy(void);
float mouse_state_position_x(void);
float mouse_state_position_y(void);
vec2 mouse_state_position_xyrel(void);
float mouse_state_position_xrel(void);
float mouse_state_position_yrel(void);
#endif
Сабж.