Re: Not getting which mouse button is pressed on button-press-event
- From: Tadej Borovšak <tadeboro gmail com>
- To: Ken Resander <kresander yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: Not getting which mouse button is pressed on button-press-event
- Date: Wed, 13 Jan 2010 20:13:53 +0100
Hello.
You can get the mouse button pressed by looking at event->button
field. 1 means left button, 2 middle button (which can usually be
emulated by pressing right and left button at once on 2-button mouse),
3 right button. I think 4-7 mean wheel movement (check API docs for
that, I'm not 100% sure).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]