Re: Which button is used on a drag?
- From: Paul Davis <paul linuxaudiosystems com>
- To: Mark Tilford <ralphmerridew gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Which button is used on a drag?
- Date: Tue, 08 Aug 2006 09:30:39 -0400
On Tue, 2006-08-08 at 08:15 -0500, Mark Tilford wrote:
> I want to have different behaviors on right-drag and left-drag. How
> do I find what button is being used for the drag?
you have to handle button-press, motion and button-release events. in
the button-press event preceding the motion events, check ev->button for
the button that has been pressed.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]