diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2003-01-28 02:57:43 +0300 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2003-01-28 02:57:43 +0300 |
commit | 0a37ede0e789966ce4bee11e58bb3f7ecadd6141 (patch) | |
tree | 9f7eb730fac7a3af9f0096fd0399fa4be819b964 /source/blender/src/ghostwinlay.c | |
parent | 0df2cdbc2dfe2b257ba8e0322e71d49be71ee11a (diff) |
added mousewheel support
Diffstat (limited to 'source/blender/src/ghostwinlay.c')
-rw-r--r-- | source/blender/src/ghostwinlay.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/src/ghostwinlay.c b/source/blender/src/ghostwinlay.c index a8863816a01..2d46de95538 100644 --- a/source/blender/src/ghostwinlay.c +++ b/source/blender/src/ghostwinlay.c @@ -435,6 +435,20 @@ static int event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr private) { break; } + case GHOST_kEventWheel: + { + GHOST_TEventWheelData* wheelData = (GHOST_TEventWheelData*) data; + if (wheelData->z > 0) + { + window_handle(win, WHEELUPMOUSE, 1); + } + else + { + window_handle(win, WHEELDOWNMOUSE, 1); + } + } + break; + case GHOST_kEventWindowDeactivate: case GHOST_kEventWindowActivate: { win->active= (type==GHOST_kEventWindowActivate); |