add suport for XMotionEvents

This commit is contained in:
Dana Jansens 2002-12-04 08:54:43 +00:00
parent a21c0c55ca
commit fbc516442d
2 changed files with 5 additions and 0 deletions

View file

@ -30,6 +30,8 @@ void OtkEventHandler::handle(const XEvent &e)
return buttonPressHandler(e.xbutton);
case ButtonRelease:
return buttonReleaseHandler(e.xbutton);
case MotionNotify:
return motionHandler(e.xmotion);
case EnterNotify:
return enterHandler(e.xcrossing);
case LeaveNotify:

View file

@ -28,6 +28,9 @@ public:
//! Called whenever a button of the pointer is released.
virtual void buttonReleaseHandler(const XButtonEvent &) {}
//! Called whenever the pointer moved
virtual void motionHandler(const XMotionEvent &) {}
//! Called whenever the pointer enters a window.
virtual void enterHandler(const XCrossingEvent &) {}