|
@@ -26,7 +26,6 @@ SDLSystem::SDLSystem() : System() {
|
26
|
26
|
mWindow = 0x0;
|
27
|
27
|
gWidth = &m_width;
|
28
|
28
|
gHeight = &m_height;
|
29
|
|
- mFirstMouseEvent = false;
|
30
|
29
|
mFullscreen = false;
|
31
|
30
|
}
|
32
|
31
|
|
|
@@ -151,11 +150,7 @@ void SDLSystem::runGame() {
|
151
|
150
|
break;
|
152
|
151
|
case SDL_MOUSEMOTION:
|
153
|
152
|
// Wrap motion
|
154
|
|
- if (!mFirstMouseEvent) {
|
155
|
|
- mFirstMouseEvent = true;
|
156
|
|
- } else {
|
157
|
|
- handleMouseMotionEvent(event.motion.xrel/2, event.motion.yrel/2);
|
158
|
|
- }
|
|
153
|
+ handleMouseMotionEvent(event.motion.xrel / 2, event.motion.yrel / 2);
|
159
|
154
|
break;
|
160
|
155
|
case SDL_MOUSEBUTTONDOWN:
|
161
|
156
|
case SDL_MOUSEBUTTONUP:
|