From 79052f0e9b13f8096172c3f911d1bd941c84a749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 20 Oct 2013 18:11:55 +0200 Subject: [PATCH] Platform: don't use magic constants in Sdl2Application. The values now have aliases. --- src/Platform/Sdl2Application.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Platform/Sdl2Application.h b/src/Platform/Sdl2Application.h index e0a90fcac..8b1c58177 100644 --- a/src/Platform/Sdl2Application.h +++ b/src/Platform/Sdl2Application.h @@ -522,8 +522,8 @@ class Sdl2Application::MouseEvent: public Sdl2Application::InputEvent { Left = SDL_BUTTON_LEFT, /**< Left button */ Middle = SDL_BUTTON_MIDDLE, /**< Middle button */ Right = SDL_BUTTON_RIGHT, /**< Right button */ - WheelUp = 4, /**< Wheel up */ - WheelDown = 5 /**< Wheel down */ + WheelUp = SDL_BUTTON_X1, /**< Wheel up */ + WheelDown = SDL_BUTTON_X2 /**< Wheel down */ }; /** @brief Button */