diff --git a/JGE/src/SDLmain.cpp b/JGE/src/SDLmain.cpp index d1b2af01c..f7e4d6090 100644 --- a/JGE/src/SDLmain.cpp +++ b/JGE/src/SDLmain.cpp @@ -253,9 +253,7 @@ public: case SDL_JOYBALLMOTION: DebugTrace("Flick gesture detected, x: " << Event->jball.xrel << ", y: " << Event->jball.yrel); - int magnitude = static_cast(sqrt( powf( Event->jball.xrel, 2) + powf( Event->jball.yrel, 2))); - - g_engine->Scroll(Event->jball.xrel, Event->jball.yrel, magnitude); + g_engine->Scroll(Event->jball.xrel, Event->jball.yrel); break; } }