diff options
Diffstat (limited to 'linden/indra/llwindow/llwindow.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindow.cpp | 50 |
1 files changed, 19 insertions, 31 deletions
diff --git a/linden/indra/llwindow/llwindow.cpp b/linden/indra/llwindow/llwindow.cpp index 5e05f03..9963228 100644 --- a/linden/indra/llwindow/llwindow.cpp +++ b/linden/indra/llwindow/llwindow.cpp | |||
@@ -143,6 +143,11 @@ BOOL LLWindowCallbacks::handleActivate(LLWindow *window, BOOL activated) | |||
143 | return FALSE; | 143 | return FALSE; |
144 | } | 144 | } |
145 | 145 | ||
146 | BOOL LLWindowCallbacks::handleActivateApp(LLWindow *window, BOOL activating) | ||
147 | { | ||
148 | return FALSE; | ||
149 | } | ||
150 | |||
146 | void LLWindowCallbacks::handleMouseMove(LLWindow *window, const LLCoordGL pos, MASK mask) | 151 | void LLWindowCallbacks::handleMouseMove(LLWindow *window, const LLCoordGL pos, MASK mask) |
147 | { | 152 | { |
148 | } | 153 | } |
@@ -190,6 +195,15 @@ void LLWindowCallbacks::handleDataCopy(LLWindow *window, S32 data_type, void *da | |||
190 | { | 195 | { |
191 | } | 196 | } |
192 | 197 | ||
198 | BOOL LLWindowCallbacks::handleTimerEvent(LLWindow *window) | ||
199 | { | ||
200 | return FALSE; | ||
201 | } | ||
202 | |||
203 | BOOL LLWindowCallbacks::handleDeviceChange(LLWindow *window) | ||
204 | { | ||
205 | return FALSE; | ||
206 | } | ||
193 | 207 | ||
194 | S32 OSMessageBox(const char* text, const char* caption, U32 type) | 208 | S32 OSMessageBox(const char* text, const char* caption, U32 type) |
195 | { | 209 | { |
@@ -247,15 +261,6 @@ LLWindow::LLWindow(BOOL fullscreen, U32 flags) | |||
247 | mFlags(flags), | 261 | mFlags(flags), |
248 | mHighSurrogate(0) | 262 | mHighSurrogate(0) |
249 | { | 263 | { |
250 | for (U32 i = 0; i < 8; i++) | ||
251 | { | ||
252 | mJoyAxis[i] = 0; | ||
253 | } | ||
254 | |||
255 | for (U32 i = 0; i < 16; i++) | ||
256 | { | ||
257 | mJoyButtonState[i] = 0; | ||
258 | } | ||
259 | } | 264 | } |
260 | 265 | ||
261 | // virtual | 266 | // virtual |
@@ -273,24 +278,6 @@ void LLWindow::decBusyCount() | |||
273 | } | 278 | } |
274 | } | 279 | } |
275 | 280 | ||
276 | F32 LLWindow::getJoystickAxis(U32 axis) | ||
277 | { | ||
278 | if (axis < 8) | ||
279 | { | ||
280 | return mJoyAxis[axis]; | ||
281 | } | ||
282 | return 0.f; | ||
283 | } | ||
284 | |||
285 | U8 LLWindow::getJoystickButton(U32 button) | ||
286 | { | ||
287 | if (button < 16) | ||
288 | { | ||
289 | return mJoyButtonState[button]; | ||
290 | } | ||
291 | return 0; | ||
292 | } | ||
293 | |||
294 | void LLWindow::setCallbacks(LLWindowCallbacks *callbacks) | 281 | void LLWindow::setCallbacks(LLWindowCallbacks *callbacks) |
295 | { | 282 | { |
296 | mCallbacks = callbacks; | 283 | mCallbacks = callbacks; |
@@ -440,7 +427,8 @@ LLWindow* LLWindowManager::createWindow( | |||
440 | BOOL clearBg, | 427 | BOOL clearBg, |
441 | BOOL disable_vsync, | 428 | BOOL disable_vsync, |
442 | BOOL use_gl, | 429 | BOOL use_gl, |
443 | BOOL ignore_pixel_depth) | 430 | BOOL ignore_pixel_depth, |
431 | U32 fsaa_samples) | ||
444 | { | 432 | { |
445 | LLWindow* new_window; | 433 | LLWindow* new_window; |
446 | 434 | ||
@@ -453,15 +441,15 @@ LLWindow* LLWindowManager::createWindow( | |||
453 | #elif LL_SDL | 441 | #elif LL_SDL |
454 | new_window = new LLWindowSDL( | 442 | new_window = new LLWindowSDL( |
455 | title, x, y, width, height, flags, | 443 | title, x, y, width, height, flags, |
456 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth); | 444 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth, fsaa_samples); |
457 | #elif LL_WINDOWS | 445 | #elif LL_WINDOWS |
458 | new_window = new LLWindowWin32( | 446 | new_window = new LLWindowWin32( |
459 | title, name, x, y, width, height, flags, | 447 | title, name, x, y, width, height, flags, |
460 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth); | 448 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth, fsaa_samples); |
461 | #elif LL_DARWIN | 449 | #elif LL_DARWIN |
462 | new_window = new LLWindowMacOSX( | 450 | new_window = new LLWindowMacOSX( |
463 | title, name, x, y, width, height, flags, | 451 | title, name, x, y, width, height, flags, |
464 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth); | 452 | fullscreen, clearBg, disable_vsync, use_gl, ignore_pixel_depth, fsaa_samples); |
465 | #elif LL_LINUX | 453 | #elif LL_LINUX |
466 | new_window = new LLWindowLinux( | 454 | new_window = new LLWindowLinux( |
467 | title, name, x, y, width, height, flags, | 455 | title, name, x, y, width, height, flags, |