#ifndef _LEXSDL_Mouse_H_ #define _LEXSDL_Mouse_H_ /* Struct */ typedef struct { int x; int y; uint8_t left; uint8_t right; uint8_t middle; uint8_t x1; uint8_t x2; } LEXSDL_Mouse; /* Getter */ extern const LEXSDL_Mouse* LEXSDL_GetMouse(void); /* Manipulation */ extern void LEXSDL_MouseUpdate(void); /* Position */ extern void LEXSDL_MousePos(int *x, int *y); extern int LEXSDL_MousePosX(void); extern int LEXSDL_MousePosY(void); /* Clicks */ extern uint8_t LEXSDL_MouseLeft(void); extern uint8_t LEXSDL_MouseRight(void); extern uint8_t LEXSDL_MouseMiddle(void); extern uint8_t LEXSDL_MouseX1(void); extern uint8_t LEXSDL_MouseX2(void); #endif