Plus [hid] gets the data directly from the device, so you can treat
multiple keyboards as different sets of buttons. [key] et al treat
all keyboards as the same entity.
.hc
On Mar 20, 2008, at 3:49 PM, marius schebella wrote:
hid, key, keyup, keyname are not compatible on the three OS. hid for example does not work on win afaik. otoh key on osx will stop working when you have a gemwin in the focus (which seems to be no problem on windows). marius.
Andrew Turley wrote:
I don't know exactly what you're trying to do, but it might just be easier to use [key], [keyup] and [keyname].
But if you do want to use [hid], once you have the device open you have to send a [1( to start polling. You might want to just hook a [print] object to the output to see what kind of info is coming out, and then [route] the messages accordingly.
andy
On Thu, Mar 20, 2008 at 12:22 PM, marius schebella marius.schebella@gmail.com wrote:
Hi, you can use only [hid] and send [open 0( message before you poll then a [1( message to start polling. device 0 is the keyboard on osx (at
least I think this is always the case, not sure, you can use "print" to
get a list of devices.) then go with route and select, bla bla. there seems to be a printout bug, because I get a mass of
printout to the console. "output this:..." although I don't want this. marius.Mike McGonagle wrote:
Hans (or anyone),
After reading several comments on the Alternate Controller
thread, I figured that I would try to use the [hid] stuff... but, as the
stuff in the Extended (most recent nightly build) is kind of broken.
While the [hid] object is, itself, in the 'extra' directory, everything
else is in a subfolder called 'hid'. So, in trying to use the [keyboard] help patch, it comes up with [keyboard] as not being found, so I
rename that object to [hid/keyboard], and it creates the object.So, it would appear that I can create an object in my patches,
but I can't seem to quite figure out how to get stuff out of the
[keyboard] abstraction. I opened the help patch (and after renaming the
object), I start it polling, and don't seem to get anything.I am running a Mac OS X PPC 10.4.11 system, if that is important...
I would like to try to set up a keyboard layout that allows me
to use specific keys to select a particular parameter to control, and
then be able to change that value either by moving the mouse, or by using (possibly) the arrow (up/down) to change the value.Mike
-- Peace may sound simple—one beautiful word— but it requires
everything we have, every quality, every strength, every dream, every high ideal. —Yehudi Menuhin (1916–1999), musician
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Mistrust authority - promote decentralization. - the hacker ethic