add suport for XMotionEvents
This commit is contained in:
parent
a21c0c55ca
commit
fbc516442d
2 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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 &) {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue