summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-04 09:01:55 +0000
committerDana Jansens <danakj@orodu.net>2002-12-04 09:01:55 +0000
commit143d2df034e1304c1d9672226bd71f01533a1a63 (patch)
treeaf134269e72ef52f4c35d9f824712e556d146b58 /src
parentfbc516442d47048edf2b5201e0b956c85b782bac (diff)
handle mouse motion too
Diffstat (limited to 'src')
-rw-r--r--src/actions.cc9
-rw-r--r--src/actions.hh9
2 files changed, 5 insertions, 13 deletions
diff --git a/src/actions.cc b/src/actions.cc
index 1b5e9c14..3f2e79f8 100644
--- a/src/actions.cc
+++ b/src/actions.cc
@@ -112,12 +112,11 @@ void OBActions::keyPressHandler(const XKeyEvent &e)
}
-void OBActions::drag(Window win, otk::Point delta, unsigned int modifiers,
- unsigned int button, Time time)
+void OBActions::motionHandler(const XMotionEvent &e)
{
- (void)win;(void)delta;(void)modifiers;(void)button;(void)time;
-
- // XXX: some guile shit...
+ // 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",
+ (long)e.window, e.state, e.x, e.y);
}
diff --git a/src/actions.hh b/src/actions.hh
index b2d03ead..3df4fe4a 100644
--- a/src/actions.hh
+++ b/src/actions.hh
@@ -50,14 +50,7 @@ public:
virtual void keyPressHandler(const XKeyEvent &e);
- //! Notify that a mouse drag is taking place.
- /*!
- @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);
+ virtual void motionHandler(const XMotionEvent &e);
};
}