mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-05 18:10:09 +03:00
fixed some mouse related mistakes in main.cpp of the SDL build (#55)
This commit is contained in:
committed by
GitHub
parent
f83807d65c
commit
5e8119d279
@@ -93,15 +93,13 @@ static void handle_events()
|
||||
}
|
||||
case SDL_MOUSEMOTION:
|
||||
{
|
||||
Mouse::_x = event.motion.x;
|
||||
Mouse::_y = event.motion.y;
|
||||
Mouse::feed(0, 0, event.motion.x, event.motion.y);
|
||||
g_AppPlatform->setMouseDiff(event.motion.xrel, event.motion.yrel);
|
||||
break;
|
||||
}
|
||||
case SDL_MOUSEWHEEL:
|
||||
{
|
||||
Mouse::feed(3, event.wheel.y, Mouse::_x, Mouse::_y);
|
||||
Mouse::feed(3, event.wheel.y, Mouse::getX(), Mouse::getY());
|
||||
break;
|
||||
}
|
||||
case SDL_TEXTINPUT:
|
||||
|
||||
Reference in New Issue
Block a user