Added KeyboardMouse::allowContinousMouseMotionUpdate(), but commented out right

now as Producer crashes when you use it..
This commit is contained in:
Robert Osfield
2003-01-17 20:05:41 +00:00
parent 619862f8d6
commit eaaf758910
2 changed files with 8 additions and 1 deletions

View File

@@ -134,11 +134,16 @@ void EventAdapter::adaptButtonRelease(double time,float x, float y, unsigned int
/** method for adapting mouse motion events whilst mouse buttons are pressed.*/
void EventAdapter::adaptMouseMotion(double time, float x, float y)
{
_eventType = DRAG;
_eventType = (_s_accumulatedButtonMask) ?
DRAG :
MOVE;
_time = time;
_s_mx = (int)(x*(float)(_s_Xmax-_s_Xmin))+_s_Xmin;
_s_my = (int)(y*(float)(_s_Ymin-_s_Ymax))+_s_Ymax;
copyStaticVariables();
}