Hi!
I am trying to use [hid] on pd vanilla and Ubuntu. Ideally, I would like to use the mouse as a fader on Y axis : when I move the mouse, the fader moves accordingly, when the mouse doesn't move the fader stays in the same position.
Problem is, I can get only relative Y, and relative Y seems to keep sending the value (1 or -1) from the last move, even if you don't move at all. So basically it is impossible to detect that the mouse is not moving.
Is there a workaround this issue?
Sebastien Piquemal
What about [change]?
Quoth s p, on 23/09/2013 11:12:
Hi!
I am trying to use [hid] on pd vanilla and Ubuntu. Ideally, I would like to use the mouse as a fader on Y axis : when I move the mouse, the fader moves accordingly, when the mouse doesn't move the fader stays in the same position.
Problem is, I can get only relative Y, and relative Y seems to keep sending the value (1 or -1) from the last move, even if you don't move at all. So basically it is impossible to detect that the mouse is not moving.
Is there a workaround this issue?
Sebastien Piquemal
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Yep, I tried that already, but that doesn't work if you move the mouse slowly.
2013/9/23 James Dunn james@4thharmonic.com
What about [change]?
Quoth s p, on 23/09/2013 11:12:
Hi!
I am trying to use [hid] on pd vanilla and Ubuntu. Ideally, I would like to use the mouse as a fader on Y axis : when I move the mouse, the fader moves accordingly, when the mouse doesn't move the fader stays in the same position.
Problem is, I can get only relative Y, and relative Y seems to keep sending the value (1 or -1) from the last move, even if you don't move at all. So basically it is impossible to detect that the mouse is not moving.
Is there a workaround this issue?
Sebastien Piquemal
_______________________________________________Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Yes I see what you mean. If you are on linux you could try [linuxevent] from here:
http://at.or.at/hans/pd/hid.html
I use this on Arch due to this bug:
http://sourceforge.net/p/pure-data/bugs/889/
[linuxevent] has finger detection so you can use this to gate the data stream.
Quoth s p, on 23/09/2013 12:29:
Yep, I tried that already, but that doesn't work if you move the mouse slowly.
2013/9/23 James Dunn <james@4thharmonic.com mailto:james@4thharmonic.com>
What about [change]? Quoth s p, on 23/09/2013 11:12:
Hi! I am trying to use [hid] on pd vanilla and Ubuntu. Ideally, I would like to use the mouse as a fader on Y axis : when I move the mouse, the fader moves accordingly, when the mouse doesn't move the fader stays in the same position. Problem is, I can get only relative Y, and relative Y seems to keep sending the value (1 or -1) from the last move, even if you don't move at all. So basically it is impossible to detect that the mouse is not moving. Is there a workaround this issue? Sebastien Piquemal _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management ->http://lists.puredata.info/listinfo/pd-list
The patch I am doing is for a workshop, so I'd like to be platform independent... But thanks for the tip anyways!
2013/9/23 James Dunn james@4thharmonic.com
Yes I see what you mean. If you are on linux you could try [linuxevent] from here:
http://at.or.at/hans/pd/hid.html
I use this on Arch due to this bug:
http://sourceforge.net/p/pure-data/bugs/889/
[linuxevent] has finger detection so you can use this to gate the data stream.
Quoth s p, on 23/09/2013 12:29:
Yep, I tried that already, but that doesn't work if you move the mouse slowly.
2013/9/23 James Dunn james@4thharmonic.com
What about [change]?
Quoth s p, on 23/09/2013 11:12:
Hi!
I am trying to use [hid] on pd vanilla and Ubuntu. Ideally, I would like to use the mouse as a fader on Y axis : when I move the mouse, the fader moves accordingly, when the mouse doesn't move the fader stays in the same position.
Problem is, I can get only relative Y, and relative Y seems to keep sending the value (1 or -1) from the last move, even if you don't move at all. So basically it is impossible to detect that the mouse is not moving.
Is there a workaround this issue?
Sebastien Piquemal
_______________________________________________Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 23/09/13 20:10, s p wrote:
The patch I am doing is for a workshop, so I'd like to be platform independent... But thanks for the tip anyways!
platform independent plus using input is going to be quite limited, since under the surface there will be quite different implementations per platform in any cross platform object or environment ... which may or may not be consistent.
Of course with simpler and more abstracted data you may have more luck.
Simon
Well ... I mean at least mac + linux ! For some reason when I mean that something can run everywhere I always forget windows :) same when I do webdev ... I usually completely forget about internet explorer...
2013/9/24 Simon Wise simonzwise@gmail.com
On 23/09/13 20:10, s p wrote:
The patch I am doing is for a workshop, so I'd like to be platform independent... But thanks for the tip anyways!
platform independent plus using input is going to be quite limited, since under the surface there will be quite different implementations per platform in any cross platform object or environment ... which may or may not be consistent.
Of course with simpler and more abstracted data you may have more luck.
Simon
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list