This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HID

Hi,

   I want to send keyboard keys to change tab i.e CTRL+ALT+TAB, how can I send these keys from the Bluetooth HID keyboard to change tabs on my PC?

Thanks 

Parents Reply
  • Hi,

    CTRL and ALT are sent in first byte of report as modifiers, the first google answer turns here. To send a keypress with CTRL+ALT, add following lines:

    #define KEY_MOD_LCTRL 0x01
    #define KEY_MOD_LALT 0x04

    data[MODIFIER_KEY_POS] |= (KEY_MOD_LCTRL | KEY_MOD_LALT);

Children
No Data
Related