Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4418
    ganghouwer01
    Participant

    Hello,

    I am developing a handebar controller with 8 buttons. I got everything working but i am running into trouble on a particular device. When KEYCODE_F5 (198) is send, on the tablet i use, the SOS function is opened. It seems harcoded in the tablets android system and not possible to change. Is het possible to use another keycode to get function working? Is there a way to map them within DMD2?

    Regards,

    #5096
    kdemotorsports
    Participant

    Can you share the key codes you have working? I tried KEY_UP, KEY_DOWN but they show DPAD_UP and DPAD_DOWN which doesn’t seem to be the same. Also should it be a bluetooth keyboard or a bluetooth gamepad?

    #5289
    ganghouwer01
    Participant

    It should work using the ESP32 BLE Keyboard library, but as far as i remember you need to send the correct decimal values, for reference look at the following link:

    https://www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/

    i am sending the following Key codes:

    int KEYCODE_F5 = 198;
    int KEYCODE_F6 = 199 ;
    int KEYCODE_F7 = 200;
    int KEYCODE_ENTER = 224;
    int KEYCODE_DPAD_UP = 218;
    int KEYCODE_DPAD_DOWN = 217;
    int KEYCODE_DPAD_LEFT = 216;
    int KEYCODE_DPAD_RIGHT = 215;

    #5291
    kdemotorsports
    Participant

    Thanks for the reply, I’ll give these key codes a try. I did manage to get the basics of up / down / left / right with the BleGamepad library. I’d love to get these others working too though. So thank you for the help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.