Description
I’ve got a keypad module which uses TCA8418 IC. There’s a 4x4 keypad matrix with some physical buttons. Keymap codes are defined by the IC and the event codes are :1, 2, 3, 4, 11, 12, 13, 14, …, 31, 32, 33, 34.
I’m using tca8418_keypad driver to create and send input events (EV_KEY) with the codes above to the user space. (/dev/input/event1)
After that, I wanted to use LVGL’s indev/evdev functions to handle and pass the key pressing events. But I’ve come across with predefined keys. I couldn’t find any option to insert and work with new keys and found out some of the predefined keys are overlaps with TCA8418 keys.
I already have a mechanism to manage a menu structure using keyboard buttons and I don’t want LVGL’s internal codes (in lv_indev.c) to intervene with the focusing policy of mine. Just need to read these input events and their codes and call my existing functions.
Am I missing something here? Isn’t there a way to work with custom keyboards and not-predefined key?
What MCU/Processor/Board and compiler are you using?
TCA8418 IC / IMX8MQ Processor, gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
What LVGL version are you using?
v9.3
Regards,
Onur