Anyone know a way to get mousedown and mouseup events for a specific
spot in a Pd patch? Basically, I want to be able to press a button
and hold it at 1, then release it and get 0.
.hc
Terrorism is not an enemy. It cannot be defeated. It's a tactic.
It's about as sensible to say we declare war on night attacks and
expect we're going to win that war. We're not going to win the war
on terrorism. - retired U.S. Army general, William Odom
It doesn't handle the regions. Basically, I have an image of an
iPod, I want to make get the mouse up/down info on each of the
buttons on the iPod in the picture. MouseState just gives me whether
the button on the mouse is up or down.
.hc
On Dec 5, 2008, at 10:21 PM, hard off wrote:
MouseState with polling diabled does that.
The arc of history bends towards justice. - Dr. Martin Luther
King, Jr.
Quoting "Hans-Christoph Steiner" hans@eds.org:
It doesn't handle the regions. Basically, I have an image of an
iPod, I want to make get the mouse up/down info on each of the
buttons on the iPod in the picture. MouseState just gives me
whether the button on the mouse is up or down.
do you mean something like iem_event from iemgui? it just gives you and invisible object that you can interact with.
mfgasd.r IOhannes
This message was sent using IMP, the Internet Messaging Program.
On Dec 6, 2008, at 3:54 PM, zmoelnig@iem.at wrote:
Quoting "Hans-Christoph Steiner" hans@eds.org:
It doesn't handle the regions. Basically, I have an image of an iPod, I want to make get the mouse up/down info on each of the buttons on the iPod in the picture. MouseState just gives me whether the button on the mouse is up or down.
do you mean something like iem_event from iemgui? it just gives you and invisible object that you can interact with.
Something like that. Except that there is a bug where you don't get
the mouseup until you move the mouse. I believe that bug is in Pd
itself tho...
.hc
mfgasd.r IOhannes
This message was sent using IMP, the Internet Messaging Program.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Computer science is no more related to the computer than astronomy is
related to the telescope. -Edsger Dykstra
Hum, and by "regions", do you mean the screen coordinates?
I was checking [MouseState] out the other day because of your question, and if you have polling turned on, it gives you a continuous XY value in the 2nd and 3rd outlets. It looks like the 4th and 5th give the amount be which the mouse changed from it's last updated position. The first outlet is either 0/1 depending on the state of the mouse...
Mike
On Sat, Dec 6, 2008 at 2:45 PM, Hans-Christoph Steiner hans@eds.org wrote:
It doesn't handle the regions. Basically, I have an image of an iPod, I want to make get the mouse up/down info on each of the buttons on the iPod in the picture. MouseState just gives me whether the button on the mouse is up or down. .hc On Dec 5, 2008, at 10:21 PM, hard off wrote:
MouseState with polling diabled does that.
The arc of history bends towards justice. - Dr. Martin Luther King, Jr.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list