Mercurial > sdl-ios-xcode
comparison src/events/SDL_mouse.c @ 3765:ed9b7fe8f902 gsoc2008_manymouse
Estethic changes noted on the SDL meeting 05.07.08
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Sat, 05 Jul 2008 20:02:07 +0000 |
parents | 2970fcfbdd54 |
children | 24db5d326f57 |
comparison
equal
deleted
inserted
replaced
3764:2970fcfbdd54 | 3765:ed9b7fe8f902 |
---|---|
415 mouse->y+=yrel; | 415 mouse->y+=yrel; |
416 } | 416 } |
417 } | 417 } |
418 mouse->xdelta += xrel; | 418 mouse->xdelta += xrel; |
419 mouse->ydelta += yrel; | 419 mouse->ydelta += yrel; |
420 mouse->z=z; | 420 mouse->pressure=z; |
421 | 421 |
422 /* Move the mouse cursor, if needed */ | 422 /* Move the mouse cursor, if needed */ |
423 if (mouse->cursor_shown && !mouse->relative_mode && | 423 if (mouse->cursor_shown && !mouse->relative_mode && |
424 mouse->MoveCursor && mouse->cur_cursor) { | 424 mouse->MoveCursor && mouse->cur_cursor) { |
425 mouse->MoveCursor(mouse->cur_cursor); | 425 mouse->MoveCursor(mouse->cur_cursor); |
432 event.motion.type = SDL_MOUSEMOTION; | 432 event.motion.type = SDL_MOUSEMOTION; |
433 event.motion.which = (Uint8) index; | 433 event.motion.which = (Uint8) index; |
434 event.motion.state = mouse->buttonstate; | 434 event.motion.state = mouse->buttonstate; |
435 event.motion.x = mouse->x; | 435 event.motion.x = mouse->x; |
436 event.motion.y = mouse->y; | 436 event.motion.y = mouse->y; |
437 event.motion.z = mouse->z; | 437 event.motion.pressure= mouse->pressure; |
438 event.motion.xrel = xrel; | 438 event.motion.xrel = xrel; |
439 event.motion.yrel = yrel; | 439 event.motion.yrel = yrel; |
440 event.motion.windowID = mouse->focus; | 440 event.motion.windowID = mouse->focus; |
441 posted = (SDL_PushEvent(&event) > 0); | 441 posted = (SDL_PushEvent(&event) > 0); |
442 } | 442 } |