fix the mouse wheel in mygui

actorid
Jordan Milne 12 years ago
parent ed644259ce
commit 601d79ef3f

@ -487,8 +487,7 @@ namespace MWInput
mMouseX = std::max(0.f, std::min(mMouseX, float(viewSize.width)));
mMouseY = std::max(0.f, std::min(mMouseY, float(viewSize.height)));
//there's no such thing as an absolute z position, so let's keep track of it ourselves
mMouseWheel += arg.zrel;
mMouseWheel = int(arg.z);
MyGUI::InputManager::getInstance().injectMouseMove( int(mMouseX), int(mMouseY), mMouseWheel);
}

@ -288,7 +288,7 @@ namespace SFO
}
else if(evt.type == SDL_MOUSEWHEEL)
{
mMouseZ += pack_evt.zrel = evt.wheel.y;
mMouseZ += pack_evt.zrel = (evt.wheel.y * 120);
pack_evt.z = mMouseZ;
}
else

Loading…
Cancel
Save