Mousewheel under X11 (patch by Martin Vollrathson)

This commit is contained in:
Chris Want
2003-01-29 04:45:13 +00:00
parent fbcfbb96ca
commit a6e4b7bb18

View File

@@ -71,6 +71,7 @@
#include "GHOST_EventCursor.h"
#include "GHOST_EventKey.h"
#include "GHOST_EventButton.h"
#include "GHOST_EventWheel.h"
#include "GHOST_DisplayManagerX11.h"
#include "GHOST_Debug.h"
@@ -380,7 +381,19 @@ processEvent(
break;
}
case ButtonPress:
{
/* process wheel mouse events and break */
if (xe->xbutton.button == 4) {
g_event = new GHOST_EventWheel(getMilliSeconds(), window, 1);
break;
}
if (xe->xbutton.button == 5) {
g_event = new GHOST_EventWheel(getMilliSeconds(), window, -1);
break;
}
}
case ButtonRelease:
{