浏览代码

Make cursor visible when disabling mousegrab

Thomas Buck 11 年前
父节点
当前提交
9dcd190664
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1
    0
      ChangeLog
  2. 2
    0
      src/SDLSystem.cpp

+ 1
- 0
ChangeLog 查看文件

8
 	[ 20140312 ]
8
 	[ 20140312 ]
9
 	* Resizing the window works properly (except for fixed string positions)
9
 	* Resizing the window works properly (except for fixed string positions)
10
 	* Removed FullScreen config command and flag that had no effect
10
 	* Removed FullScreen config command and flag that had no effect
11
+	* Set cursor visible when disabling mousegrab
11
 
12
 
12
 	[ 20140311 ]
13
 	[ 20140311 ]
13
 	* Removed empty Camera, Matrix, Particle, Quaternion,
14
 	* Removed empty Camera, Matrix, Particle, Quaternion,

+ 2
- 0
src/SDLSystem.cpp 查看文件

49
 
49
 
50
 void SDLSystem::setGrabMouse(bool on) {
50
 void SDLSystem::setGrabMouse(bool on) {
51
     SDL_SetRelativeMouseMode(on ? SDL_TRUE : SDL_FALSE);
51
     SDL_SetRelativeMouseMode(on ? SDL_TRUE : SDL_FALSE);
52
+    if (!on)
53
+        SDL_ShowCursor(1);
52
 }
54
 }
53
 
55
 
54
 void SDLSystem::initVideo(unsigned int width, unsigned int height, bool fullscreen) {
56
 void SDLSystem::initVideo(unsigned int width, unsigned int height, bool fullscreen) {

正在加载...
取消
保存