From efd72b8fd2c0162f2afdeafacf70af08209199fe Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Sat, 28 Jan 2012 02:46:13 +0000 Subject: [PATCH] udpate to scroll signature from previous commit. --- JGE/src/SDLmain.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } }