mouse-fix-hack.diff

nimetu, 08/22/2011 08:13 am

Download (2.8 kB)

b/code/ryzom/client/src/connection.cpp Mon Aug 22 09:09:09 2011 +0300
216 216

  
217 217
	// And setup hardware mouse if we have to
218 218
	InitMouseWithCursor (ClientCfg.HardwareCursor);
219
	SetMouseFreeLook ();
219
	//SetMouseFreeLook ();
220 220
	SetMouseCursor ();
221 221
	SetMouseSpeed (ClientCfg.CursorSpeed);
222 222
	SetMouseAcceleration (ClientCfg.CursorAcceleration);
b/code/ryzom/client/src/input.cpp Mon Aug 22 09:09:09 2011 +0300
109 109
		}
110 110

  
111 111
		// Update mouse information
112
		UpdateMouse ();
112
		//UpdateMouse ();
113 113

  
114 114
		if (InitMouseFirstTime)
115 115
		{
......
136 136
						}
137 137
						else
138 138
						{
139
							Driver->setMousePos(x, y);
139
							//Driver->setMousePos(x, y);
140 140
							nlwarning("mouse pos %f,%f", x, y);
141 141
						}
142 142

  
......
163 163
							uint height = Driver->getWindowHeight();
164 164
							if (width != 0 && height != 0)
165 165
							{
166
								Driver->setMousePos(x / width, y / height);
166
								//Driver->setMousePos(x / width, y / height);
167 167
							}
168 168
						}
169 169
					}
......
198 198
		else
199 199
		{
200 200
			// no mouse device implementation on X11 and Cocoa, emulate raw mode
201
			nlwarning("UpdateMouse::MouseFreeLook");
201 202
			Driver->emulateMouseRawMode(true);
202 203
		}
203 204
	}
......
306 307
			}
307 308
			else
308 309
			{
309
				Driver->setMousePos(x, y);
310
				//Driver->setMousePos(x, y);
310 311
			}
311 312

  
312 313
			if (MouseHardware)
313 314
			{
314
				Driver->setMousePos(x, y);
315
				//Driver->setMousePos(x, y);
315 316
			}
316 317
		}
317 318

  
b/code/ryzom/client/src/login.cpp Mon Aug 22 09:09:09 2011 +0300
814 814
	ClientCfg.DisableDirectInput = true;
815 815
	InitMouseWithCursor(false);
816 816
	Driver->showCursor (false);
817
	SetMouseFreeLook ();
817
	//SetMouseFreeLook ();
818 818
	SetMouseCursor (false);
819 819
	SetMouseSpeed (ClientCfg.CursorSpeed);
820 820
	SetMouseAcceleration (ClientCfg.CursorAcceleration);
b/code/ryzom/client/src/main_loop.cpp Mon Aug 22 09:09:09 2011 +0300
1460 1460

  
1461 1461
	updateLightDesc();
1462 1462

  
1463
	SetMouseFreeLook ();
1463
	//SetMouseFreeLook ();
1464 1464
	SetMouseCursor ();
1465 1465
	// Set the cursor.
1466 1466
	ContextCur.context("STAND BY");
......
2917 2917
				T1		= ryzomGetLocalTime();
2918 2918
				TSend	= ((T1+DTSend)/DTSend)*DTSend;
2919 2919

  
2920
				SetMouseFreeLook ();
2920
				//SetMouseFreeLook ();
2921 2921
				SetMouseCursor ();
2922 2922
				// Set the cursor.
2923 2923
				ContextCur.context("STAND BY");