2 * Acess GUI (AxWin) Version 2
3 * By John Hodge (thePowersGang)
9 void Input_FillSelect(int *nfds, fd_set *set)
11 if(*nfds < giTerminalFD) *nfds = giTerminalFD;
12 if(*nfds < giMouseFD) *nfds = giMouseFD;
13 FD_SET(giTerminalFD, set);
14 FD_SET(giMouseFD, set);
17 void Input_HandleSelect(fd_set *set)
19 if(FD_ISSET(giTerminalFD, set))
22 if( read(giTerminalFD, sizeof(codepoint), &codepoint) != sizeof(codepoint) )
26 // TODO: pass on to message handler
29 if(FD_ISSET(giMouseFD, set))
32 uint16_t NAxies, NButtons;
34 int16_t MinValue, MaxValue;
41 if( read(giMouseFD, sizeof(mouseinfo), &mouseinfo) != sizeof(mouseinfo) )
43 // Not a 3 button mouse, oops
48 // Video_SetCursorPos( mouseinfo.Axies[0], mouseinfo.Axies[1] );