handle mouse motion too
This commit is contained in:
parent
fbc516442d
commit
143d2df034
2 changed files with 5 additions and 13 deletions
|
@ -112,12 +112,11 @@ void OBActions::keyPressHandler(const XKeyEvent &e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void OBActions::drag(Window win, otk::Point delta, unsigned int modifiers,
|
void OBActions::motionHandler(const XMotionEvent &e)
|
||||||
unsigned int button, Time time)
|
|
||||||
{
|
{
|
||||||
(void)win;(void)delta;(void)modifiers;(void)button;(void)time;
|
// XXX: i can envision all sorts of crazy shit with this.. gestures, etc
|
||||||
|
printf("GUILE: MOTION: win %lx modifiers %u x %d y %d\n",
|
||||||
// XXX: some guile shit...
|
(long)e.window, e.state, e.x, e.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,14 +50,7 @@ public:
|
||||||
|
|
||||||
virtual void keyPressHandler(const XKeyEvent &e);
|
virtual void keyPressHandler(const XKeyEvent &e);
|
||||||
|
|
||||||
//! Notify that a mouse drag is taking place.
|
virtual void motionHandler(const XMotionEvent &e);
|
||||||
/*!
|
|
||||||
@param win The window the drag is on
|
|
||||||
@param delta The change in position of the mouse pointer
|
|
||||||
@param modifiers The modifier state during the drag.
|
|
||||||
*/
|
|
||||||
void drag(Window win, otk::Point delta, unsigned int modifiers,
|
|
||||||
unsigned int button, Time time);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue