51 #ifndef GUI_IAL_CUSTOM_H 52 #define GUI_IAL_CUSTOM_H 59 #define IAL_MOUSE_LEFTBUTTON 1 60 #define IAL_MOUSE_RIGHTBUTTON 2 61 #define IAL_MOUSE_MIDDLEBUTTON 4 62 #define IAL_MOUSE_FOURTHBUTTON 8 63 #define IAL_MOUSE_FIFTHBUTTON 16 64 #define IAL_MOUSE_SIXTHBUTTON 32 65 #define IAL_MOUSE_RESETBUTTON 64 67 #define IAL_MOUSEEVENT 1 68 #define IAL_KEYEVENT 2 70 typedef struct tagINPUT
75 BOOL (*init_input) (
struct tagINPUT *input,
const char* mdev,
const char* mtype);
76 void (*term_input) (void);
79 int (*update_mouse) (void);
80 void (*get_mouse_xy) (
int* x,
int* y);
81 void (*set_mouse_xy) (
int x,
int y);
82 int (*get_mouse_button) (void);
83 void (*set_mouse_range) (
int minx,
int miny,
int maxx,
int maxy);
84 void (*suspend_mouse) (void);
85 int (*resume_mouse) (void);
88 int (*update_keyboard) (void);
89 const char* (*get_keyboard_state) (void);
90 void (*suspend_keyboard) (void);
91 int (*resume_keyboard) (void);
92 void (*set_leds) (
unsigned int leds);
95 int (*wait_event) (
int which,
int maxfd, fd_set *in, fd_set *out,
96 fd_set *except,
struct timeval *timeout);
102 extern BOOL InitCustomInput (INPUT* input,
const char* mdev,
const char* mtype);
103 extern void TermCustomInput (
void);
int BOOL
A type definition for boolean value.
#define MAX_PATH
The possible maximal length of a path name.