Here is the problem.
You can not hold a single key twice. That is why there is an undefined behavior.
I tried to use KEY_S, KEY_T, KEY_A, KEY_R, KEY_Q, KEY_RETURN , it worked.
In GUI version you won't have this problem because the program doesn't allow you to add a key twice.
uchobby wrote:I also have a Bluefruit EZ key that fails to pair. I've tried on several OSs and devices all fail. The light is flashing as if it's ready to pair. Android device said it paired once but the Bluefruit would show error and no keys were sent.
I did contact support as suggested in a previous post but got no reply.
I purchased another Bluefruit and just tried it today, works fine...
I found two issues with the key remapping however. In the non-GUI Processing application.
1) some of the devices on my system report "null" on the info.getProduct_string() call in module HID_stuff, this kills the program.
I inserted if(info.getProduct_string()==null) continue; just after the for loop start to fix this.
2) documentation indicates that you can program a sequence of up to 6 keys but I could not make more than 4 work. For example...
hid_keys.set_key_report(2, MODIFIER_NONE, KEY_S, KEY_T, KEY_A, KEY_RETURN, KEY_NONE, KEY_NONE); Generates "sta<return>" as expected.
hid_keys.set_key_report(2, MODIFIER_NONE, KEY_S, KEY_T, KEY_A, KEY_R, KEY_T, KEY_RETURN); Only sends "star"