[PD] updated hid object?

Ingo ingo at miamiwave.com
Sat May 27 09:30:23 CEST 2023


Unfortunately [hidraw] doesn’t output anything for me at all on two computers (Debian & Windows 10) on either outlet.

After listing the devices (manually each time!) the only action that I can get from it is crashing Pd.

 

I tried both [open $1 ( with the “devicenumber”and [open-vidpid “n” “n”(.

No output at all – even if I knew the same number was working perfectly with [hid].

(I did close the device number before opening a new one each time. It didn’t make a difference closing all devices on hid.)

 

On each search that I made with [open $1( my software / computer crashed.

With [open-vidpid “n” “n”( there were no crashes but also nothing else happened.

 

I guess I’ll stick with [hid] that is working and does not crash my Pd or entire operating system.

The only downside of [hid] is that vid / pid or devife type (like mouse) doesn’t work.

But it isn’t working on [hidraw] either and the latter doesn’t even exist.

 

I’m not sure if it has anything to do with my configuration but from what I see I don’t see any reason for prefering [hidraw] over [hid].

So wasting one day is enough for me to see that there is definitely no advantage in my case.

Maybe having [hid] run at the same time has something to do with it?

 

Maybe others will have more luck than I had . . .

 

Ingo

 

 

Von: Lucas Cordiviola <lucarda27 at hotmail.com> 
Gesendet: Freitag, 26. Mai 2023 14:48
An: Ingo <ingo at miamiwave.com>; pd-list at lists.iem.at
Betreff: Re: AW: [PD] updated hid object?

 

@Ingo this simple patch tracks the buttons for my mouse. In my case the buttons are encoded in the first byte.

see attached.

 

 

--

Mensaje telepatico asistido por maquinas.

On 26/05/2023 08:41, Ingo wrote:

Thanks, Lucas!

 

I just downloaded and will test now.

 

Ingo

 

Von: Pd-list  <mailto:pd-list-bounces at lists.iem.at> <pd-list-bounces at lists.iem.at> Im Auftrag von Lucas Cordiviola
Gesendet: Freitag, 26. Mai 2023 04:46
An: pd-list at lists.iem.at <mailto:pd-list at lists.iem.at> 
Betreff: Re: [PD] updated hid object?

 

Hi Ingo,

You can try https://deken.puredata.info/library/hidraw

You can open a device via its VID PID. From the help patch:


"open device via VID PID (shown in the console if you did "listdevices"). Note that the VID PID is hard-coded in the device and this can be used (later) without a prior "listdevices" message."


The help patch also includes links to the web on how to set HID permissions.

You can connect

[hidraw]
|
[print]

to see which bytes (in the list) change when you press the mouse buttons.

 

 

 

--

Mensaje telepatico asistido por maquinas.

On 25/05/2023 14:07, Ingo wrote:

Hi there,

 

I’m having trouble with using my mouse with the relatively old [hid] (from 2004) on my Debian with Pd 0.49.0.

 

The main problem is that  “open by device type” is not working and I have to search the device number each time.

I have some automated method for searching but it still takes up too much time when restarting frequently.

Once I have the device number it works very well well, though!

(I need 6-8 different mouse buttons . . . )

 

I remember seeing something a while ago about either a new or updated alternative [hid] object.

However, I’m not sure what it was and I don’t remember if this was even for Linux at all.

 

Making a quick search didn’t give me any results.

 

Can anyone enlighten me if there is something working more reliably with finding the  mouse without havin to search manually each time?

 

Thanks

Ingo






_______________________________________________
Pd-list at lists.iem.at <mailto:Pd-list at lists.iem.at>  mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20230527/4d37234e/attachment.htm>


More information about the Pd-list mailing list