3 * - By John Hodge (thePowersGang)
8 #include <CConfigInput.hpp>
10 #include <CCompositor.hpp>
15 CInput::CInput(const ::AxWin::CConfigInput& config, CCompositor& compositor):
16 m_compositor(compositor),
23 int CInput::FillSelect(::fd_set& rfds)
25 FD_SET(m_keyboardFD, &rfds);
26 FD_SET(m_mouseFD, &rfds);
27 return ::std::max(m_keyboardFD, m_mouseFD)+1;
30 void CInput::HandleSelect(::fd_set& rfds)
32 if( FD_ISSET(m_keyboardFD, &rfds) )
34 // TODO: Read keystroke and handle
37 if( FD_ISSET(m_mouseFD, &rfds) )
39 // TODO: Read mouse event and handle