Hello People,
I am trying to use HID and MouseState in PD vanilla. I am not sure how to go about doing it. Alternately is there a vanilla way to do either MouseState or HID.
Thanks
Ken
HID & mousestate in PD Vanilla
Hello People,
I am trying to use HID and MouseState in PD vanilla. I am not sure how to go about doing it. Alternately is there a vanilla way to do either MouseState or HID.
Thanks
Ken
As far as I know you need externals for that. Purr data comes with hid and mousestate objects. If you wanna stay pure vanilla an option would be converting hid/mouse state to midi messages via some third party program. I know there are plenty free ones that can do that. You'd need some virtual midi port too
If you're on linux, I just hack something using xinput and open source control...
Let me know if you're interested.
Cheers
Thanks for the replies. Okay I have some alternatives now... most likely I'll just come up with another plan.
Thanks again.
Ken
Well, there is a vanilla way to read mouse coordinates, sort of, using canvases. Look up "my_canvas-help.pd" in /doc/5.reference/. It relies on click-dragging canvases around in edit mode (as opposed to control mode). Open the [pd room] sub patch to try it out.
The way it works is through the the canvases' assigned sends and receives. They both receive a 'get_pos' message every 10 ms via their shared 'to_K' receive, which then makes them spit out a pack of coordinates on each of their respective sends.
Just discovered this today. Should be very useful for designing envelopes and other stuff
Very nice... I haven't seen that before. Definitely interesting. I think that'll work. Thanks very much.
@audiolemon This vanilla patch can get you mouse coordinates without metro: https://forum.pdpatchrepo.info/topic/10854/xy-abstraction-to-get-mouse-click-and-drag-coordinates-vanilla
@EEight said:
If you're on linux, I just hack something using xinput and open source control...
Let me know if you're interested.
Cheers
I'm a little late, but could you explain how you do it?
Thank you EEight.
Oops! Looks like something went wrong!