Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / input.hpp
diff --git a/Usermode/Applications/axwin4_src/Server/include/input.hpp b/Usermode/Applications/axwin4_src/Server/include/input.hpp
new file mode 100644 (file)
index 0000000..f8b27ce
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Acess2 GUI v4
+ * - By John Hodge (thePowersGang) 
+ *
+ * input.hpp
+ * - Input Interface Header
+ */
+#ifndef _INPUT_H_
+#define _INPUT_H_
+
+#include <acess/sys.h>
+
+namespace AxWin {
+
+class CCompositor;
+
+class CInput
+{
+       CCompositor&    m_compositor;
+        int    m_keyboardFD;
+        int    m_mouseFD;
+       
+       unsigned int m_mouseX;
+       unsigned int m_mouseY;
+       unsigned int m_mouseBtns;
+public:
+       CInput(const CConfigInput& config, CCompositor& compositor);
+        int FillSelect(::fd_set& rfds);
+       void HandleSelect(::fd_set& rfds);
+};
+
+};     // namespace AxWin
+
+#endif
+

UCC git Repository :: git.ucc.asn.au