I have been looking for better information about the "hi" object.
What I am after is using my keyboard, more precisely "Apple Internal Keyboard/Trackpad 3" as a HID device.
Here is how far I have got in my investigation:
The hi object outputs a number of lists for each keyboard action (pressing or releasing keys): normally 4 lists, but sometimes more. Lists common to each keypress seem to be one starting by "10", and where the second element is an 9-digit (sometimes 8-digit) integer, and another list starting by "17", where second element is always 0, until there are "too many" keys pressed simultaneously (too many can be between 3 and 6), then, second element is 1 and further keyOn actions won't have effect.
The two other lists have their first element changing, one seems to be some kind of gate on/off indicator, the other could be 1 to 1 assignement to the keys, but i am not sure about it...
The 9-number integer (second element of the list starting by 10) seems to sum up values in some way if there are more than one key pressed. So it seems to contain data for key combinations. However, pressing "qwe" doesn't give the same result as pressing "ewq", in the opposite order...
Finally, the modifier keys only output 1 list, with 1st element that seems to be proper to each modifier, and second element meaning on/off.
I understand everything is here to make a rather complex implementation, but there are just too many different parameters for going by guessing.
The info I need does not come in hi help or reference, or in the HID tutorial. I searched the forum for "hi", no result which is strange.
I hope someone can point me to some information.
Thank you in advance,