[chuck-users] Hid open by string [bug]
Spencer Salazar
ssalazar at CS.Princeton.EDU
Fri Dec 18 21:23:57 EST 2009
Hey Kassen,
Now why would you ever want to open a device by name if it wasn't connected to your system? :)
Thanks for the bug report. Should be an easy fix.
spencer
On Dec 18, 2009, at 3:55 PM, Kassen wrote:
> Fellow ChucKists, Dear Spencer.
>
> I was going over the VERSIONS file, looking for more things that are lacking in the manual and found the .open( string name ) member function for Hid and HidIn.
>
> As far as I can tell this works fine, provided we know the exact name of the device. The following example will instead crash;
>
> HidIn hi;
> hi.open( "foo" );
>
> ...this is of course assuming you don't accidentally have a device named "foo". The following does work for me;
>
> HidIn hi;
> hi.open("SynPS/2 Synaptics TouchPad");
>
> It seems like the existence of the device isn't properly verified before ChucK attempts to open it. Tested using the latest mini on Ubuntu 9.10
>
> Yours,
> Kas.
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
More information about the chuck-users
mailing list