udpate to scroll signature from previous commit.

This commit is contained in:
techdragon.nguyen@gmail.com
2012-01-28 02:46:13 +00:00
parent 9faf2ffc72
commit efd72b8fd2

View File

@@ -253,9 +253,7 @@ public:
case SDL_JOYBALLMOTION:
DebugTrace("Flick gesture detected, x: " << Event->jball.xrel << ", y: " << Event->jball.yrel);
int magnitude = static_cast<int>(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;
}
}