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))
24 if(FD_ISSET(giMouseFD, set))
27 uint16_t NAxies, NButtons;
29 int16_t MinValue, MaxValue;
36 if( read(giMouseFD, sizeof(mouseinfo), &mouseinfo) != sizeof(mouseinfo) )
38 // Not a 3 button mouse, oops
43 // Video_SetCursorPos( mouseinfo.Axies[0], mouseinfo.Axies[1] );