Browse Source

Minor code cleanup.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
6b4a833d6e
  1. 6
      src/Platform/Sdl2Application.cpp

6
src/Platform/Sdl2Application.cpp

@ -103,15 +103,13 @@ int Sdl2Application::exec() {
case SDL_KEYUP: {
KeyEvent e(static_cast<KeyEvent::Key>(event.key.keysym.sym), fixedModifiers(event.key.keysym.mod));
event.type == SDL_KEYDOWN ? keyPressEvent(e) : keyReleaseEvent(e);
break;
}
} break;
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP: {
MouseEvent e(static_cast<MouseEvent::Button>(event.button.button), {event.button.x, event.button.y});
event.type == SDL_MOUSEBUTTONDOWN ? mousePressEvent(e) : mouseReleaseEvent(e);
break;
}
} break;
case SDL_MOUSEWHEEL:
if(event.wheel.y != 0) {

Loading…
Cancel
Save