Sorry, I accidentally send this to just Hans, it should of course have gone to the list. Hi, Hans! The general interface just provides a list of (device_type, button_number,
button_range, button_intended_use) or something (don't remember details). Chuck implements some of those choices, hardcoded with respect to (device_type, button_intended_use).
Indeed, ChucK takes the most common and universal ones. It's not perfect but as a simplified interface it's quite pleasant to work with and mostly gets most of the job done.
[chuck](VM): sporking incoming shred: 1 (mouse.ck)... mouse 'SynPS/2 Synaptics TouchPad' ready
So this means that the touchpad has been registered as type mouse.
Yes, indeed. Frankly I think that so far it's a clear cut case. I feel it's a mouse, my windows manager (Gnome) agrees it's a mouse and ChucK accepts it as one yet there is no data coming in or being printed from mouse.ck. You do have a valid point about the difference in scanning between a regular mouse and a pad but at least the buttons should be buttons in any case yet I'm not seeing buttonpresses. This is why I suspect something is wrong. I do believe touchpads also output the change in position.
They may or may not, I think - they HIDs can pretty much choose what varibles they want to provide. There was another thread withy this track-pad problem.
Yeah.... but this is not some exotic specialised device. I would think it's quite clear that a touchpad on a laptop will be used as a mouse.
If you have a Mac with gcc on it, you might try the program I hacked up. It lists all the variables for all attached HIDs.
No, sorry, I do have some Linux computers with GCC on them. Yours, Kas.
On 17 Jul 2009, at 19:42, Kassen wrote:
They may or may not, I think - they HIDs can pretty much choose what varibles they want to provide. There was another thread withy this track-pad problem.
Yeah.... but this is not some exotic specialised device. I would think it's quite clear that a touchpad on a laptop will be used as a mouse.
The problems is that button-variables can be labelled with different intended usages, such as velocity or absolute position. So if Chuck only implements velocity for mouses but not the absolute position, it will miss them. A HID can provide both - in fact this is what multiaxis HIDs do.
If you have a Mac with gcc on it, you might try the program I hacked up. It lists all the variables for all attached HIDs.
No, sorry, I do have some Linux computers with GCC on them.
It will not work there, as it calls some Mac OS X native, non-POSIX, API. If you search the 'chuck' sources, you might see what it uses. Netsearching for "UNIX human interface device API" gave: http://en.allexperts.com/e/u/us/usb_human_interface_device_class.htm http://www.s-gms.ms.edus.si/cgi-bin/man-cgi?hid+7D Hans
participants (2)
-
Hans Aberg
-
Kassen