mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
inline implementation of IAL_WaitEvent
This commit is contained in:
+11
-1
@@ -173,7 +173,17 @@ static inline int IAL_ResumeKeyboard (void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#define IAL_WaitEvent (*__mg_cur_input->wait_event)
|
||||
static inline int IAL_WaitEvent(int maxfd, fd_set *in, fd_set *out,
|
||||
fd_set *except, struct timeval *timeout, EXTRA_INPUT_EVENT* extra)
|
||||
{
|
||||
if (__mg_cur_input->wait_event_ex) {
|
||||
return __mg_cur_input->wait_event_ex(maxfd, in, out, except,
|
||||
timeout, extra);
|
||||
}
|
||||
|
||||
return __mg_cur_input->wait_event(IAL_MOUSEEVENT | IAL_KEYEVENT,
|
||||
maxfd, in, out, except, timeout);
|
||||
}
|
||||
|
||||
#define IAL_MType (__mg_cur_input->mtype)
|
||||
#define IAL_MDev (__mg_cur_input->mdev)
|
||||
|
||||
Reference in New Issue
Block a user