How to fix uTasker send keystrokes bug?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix uTasker send keystrokes bug?

176 Views
alresarena
Contributor III

How to fix uTasker send keystrokes bug?

The uTasker USB HID Keyboard is sending unknown characters on PC.

the Keyboard polling is 1ms.

0 Kudos
1 Reply

80 Views
mjbcswitzerland
Specialist V

Alres

1. The HID keyboard driver sends characters as defined by the input passed to it in its queue. If unknown characters are displayed it may be that those passed to the queue are not supported.
2. Each character is converted to a key code using the routine
static void fnInsertUSBKeyCode(CHAR cInputCharacter, unsigned char ucKeyboardState[8])
which takes the new value (cInputCharacter) and puts its key code into the ucKeyboardState[] array.

Note that this supports "typical" ASCII input but if unsupported characters are received it will not code them and leave the input buffer with 0x00.
See in that routine:
    else {
        return;                                                          // others are not yet supported
    }

If you have unusual input you will need to add a key code for it.

Therefore, first identify whether you are passing the expected data to the queue and then whether there is some input for which key codes are not present.

Regards

Mark

0 Kudos