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); return buttonPressHandler(e.xbutton);
case ButtonRelease: case ButtonRelease:
return buttonReleaseHandler(e.xbutton); return buttonReleaseHandler(e.xbutton);
case MotionNotify:
return motionHandler(e.xmotion);
case EnterNotify: case EnterNotify:
return enterHandler(e.xcrossing); return enterHandler(e.xcrossing);
case LeaveNotify: case LeaveNotify:

View file

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