summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-10-21 18:42:21 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-10-22 08:55:53 +0800
commit90992fbf8aeb4699d3eb99ee6fe590ad99291299 (patch)
tree040c2da4551e8a090924d4b97bf45a5ae83d43bb
parent6875e66e7a4b5fa74486d5318a387a3674073ac8 (diff)
linux: prepare for adding keyboard support
-rwxr-xr-xincludes/linux/LinuxInputManager.h5
-rwxr-xr-xincludes/linux/LinuxPrereqs.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/includes/linux/LinuxInputManager.h b/includes/linux/LinuxInputManager.h
index e6898a8..ecc391b 100755
--- a/includes/linux/LinuxInputManager.h
+++ b/includes/linux/LinuxInputManager.h
@@ -95,6 +95,11 @@ namespace OIS
//! Number of joysticks found
char mouses;
+ //! List of unused keyboards ready to be used
+ JoyStickInfoList unusedKeyboardList;
+ //! Number of joysticks found
+ char keyboards;
+
//! Used to know if we used up keyboard
bool keyboardUsed;
diff --git a/includes/linux/LinuxPrereqs.h b/includes/linux/LinuxPrereqs.h
index 53dd696..0746e65 100755
--- a/includes/linux/LinuxPrereqs.h
+++ b/includes/linux/LinuxPrereqs.h
@@ -86,6 +86,8 @@ namespace OIS
typedef std::vector< JoyStickInfo > JoyStickInfoList;
typedef JoyStickInfo MouseInfo;
typedef JoyStickInfoList MouseInfoList;
+ typedef JoyStickInfo KeyboardInfo;
+ typedef JoyStickInfoList KeyboardInfoList;
}
#endif //_LINUX_INPUTSYSTEM_PREREQS_H