BACKGROUND
I'm using an old input device, a Sony USB Jog Controller (PCVA-JC1). It's a HID device, but not a standard keyboard. Read on.
Using various tools (WebHID, hidapitester, etc) I can see that each button has the following states (descriptions in my words):
- just pressed
- pressed
- held
- just released
For each byte: the "just" events set the high word to the same value for half the keys, the pressed sets the low word to a value that is unique per key.
Two of the buttons act a little different, as a hybrid button/modifier, but I won't describe that further here.
A single, quick press of a button results in: just pressed, pressed, just released.
ATTEMPTED USE OF KM
I cannot read them using Device Keys because it triggers an unexpected number times for each press (shown in brackets).
- pressed (2 for press/hold)
- long pressed (0 for press/hold)
- down (6 for press, 8 for hold)
- released (1 for press, 2 for hold)
- tapped (n/a)
Also, three of the buttons return the same device key for reasons I do not understand.
QUESTION
- Is there a lower level way of reading such a device using Keyboard Maestro?
- Or recommendations If I seem to be doing it wrong using Device Keys?
Thanks!