added usage of SDL_BUTTON_WHEELUP/DOWN instead of the win-specific constant values

This was SVN commit r351.
This commit is contained in:
Simon Brenner 2004-06-02 15:22:19 +00:00
parent 270aa5974e
commit 01e94151cf

View File

@ -124,14 +124,14 @@ bool CGUI::HandleEvent(const SDL_Event& ev)
*/ }
break;
case 3: // wheel down
case SDL_BUTTON_WHEELDOWN: // wheel down
if (pNearest)
{
pNearest->HandleMessage(SGUIMessage(GUIM_MOUSE_WHEEL_DOWN));
}
break;
case 4: // wheel up
case SDL_BUTTON_WHEELUP: // wheel up
if (pNearest)
{
pNearest->HandleMessage(SGUIMessage(GUIM_MOUSE_WHEEL_UP));