added usage of SDL_BUTTON_WHEELUP/DOWN instead of the win-specific constant values
This was SVN commit r351.
This commit is contained in:
parent
270aa5974e
commit
01e94151cf
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user