Permalink
Browse files

Support for hiding the OS mouse pointer in Windows.

  • Loading branch information...
1 parent 4f42253 commit 4692adbf608b362f43438cc3d83029f1b75367b3 @aerique committed Aug 19, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 libclois-lane/src/libclois-lane.cpp
View
9 libclois-lane/src/libclois-lane.cpp
@@ -9,6 +9,10 @@
#include "OIS.h"
+#if defined(_WIN32)
+#include "Windows.h"
+#endif
+
using namespace std;
@@ -81,6 +85,11 @@ InputHandler::InputHandler(std::string hWnd, bool hide_mouse)
pl.insert(make_pair("w32_keyboard", "DISCL_FOREGROUND"));
//pl.insert(make_pair("w32_keyboard", "DISCL_BACKGROUND"));
pl.insert(make_pair("w32_keyboard", "DISCL_NONEXCLUSIVE"));
+ if (hide_mouse) {
+ ShowCursor(false);
+ } else {
+ ShowCursor(false);
+ }
#endif
ois = OIS::InputManager::createInputSystem(pl);

0 comments on commit 4692adb

Please sign in to comment.