How to fix uTasker send keystrokes bug?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to fix uTasker send keystrokes bug?

637 次查看
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 项奖励
回复
1 回复

541 次查看
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 项奖励
回复