sdl: evaluate the motion event type

Fixes #1272
This commit is contained in:
Christian Prochaska 2014-10-06 15:28:12 +02:00 committed by Christian Helmuth
parent 2db563ebdd
commit 443dc1f71d
1 changed files with 4 additions and 1 deletions

View File

@ -69,6 +69,9 @@ extern "C" {
switch(curr.type())
{
case Input::Event::MOTION:
if (curr.is_absolute_motion())
SDL_PrivateMouseMotion(0, 0, curr.ax(), curr.ay());
else
SDL_PrivateMouseMotion(0, 1, curr.rx(), curr.ry());
break;
case Input::Event::PRESS: