Remapped buttons no longer work 2.4GHz remote

I remapped the buttons on my A3 Lite using this hwdb which worked fine with LE builds but now no longer work with CE.

I can see by evtest that the buttons actually work. Home key mapped to BLUE

Event: time 1534676976.097925, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0223
Event: time 1534676976.097925, type 1 (EV_KEY), code 401 (KEY_BLUE), value 1
Event: time 1534676976.097925, -------------- SYN_REPORT ------------
Event: time 1534676976.241888, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0223
Event: time 1534676976.241888, type 1 (EV_KEY), code 401 (KEY_BLUE), value 0

But when i press the button with Kodi running all i get is this for all the top buttons (red/green/yellow/blue)

12:28:40.064 T:4089143312   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:28:40.260 T:4089143312   DEBUG: Previous line repeats 1 times.
12:28:40.260 T:4089143312   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
12:28:40.260 T:4089143312   DEBUG: Previous line repeats 1 times.
12:28:40.260 T:4089143312   DEBUG: HandleKey: long-0 (0x100f200, obc-16838913) pressed, action is
12:28:40.455 T:4089143312   DEBUG: Keyboard: scancode: 0x00, sym: 0x0000, unicode: 0x0000, modifier: 0x0

The button remapped to STOP gives a different one

12:28:19.960 T:4089143312   DEBUG: Keyboard: scancode: 0x80, sym: 0x0000, unicode: 0x0000, modifier: 0x0
12:28:19.960 T:4089143312   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
12:28:19.960 T:4089143312   DEBUG: Previous line repeats 1 times.
12:28:19.960 T:4089143312   DEBUG: HandleKey: 0 (0xf200, obc-61697) pressed, action is
12:28:19.960 T:4089143312   DEBUG: Keyboard: scancode: 0x80, sym: 0x0000, unicode: 0x0000, modifier: 0x0

I tried using the action

KEYBOARD_KEY_07003a=stop

and the scancode

KEYBOARD_KEY_0c0223=401

Neither work in Kodi. What am I missing?

For remapping buttons for remotes recognised as keyboards then you should be modifying keyboard.xml or you can use Keymap editor which is easier.

https://kodi.wiki/view/HOW-TO:Modify_keymaps

I use the hwdb file to remap buttons then use the keyboard.xml to change them this is not the problem. The same keymap.xmls and hwdb worked fine in previous LE builds with Krypton and now don’t work with CE builds and Leia. I’m wondering what’s changed

Sort of fixed, well i got it working at least. Seems mapping buttons to colours and the stop button doesnt want to work with Leia
This wouldn’t work like it used to

KEYBOARD_KEY_070073=info
KEYBOARD_KEY_070070=red
KEYBOARD_KEY_0700bb=green
KEYBOARD_KEY_070065=yellow
KEYBOARD_KEY_0c0223=blue
KEYBOARD_KEY_07003a=stop

But this works fine

KEYBOARD_KEY_070073=f1
KEYBOARD_KEY_070070=f2
KEYBOARD_KEY_0700bb=f3
KEYBOARD_KEY_070065=f4
KEYBOARD_KEY_0c0223=f5
KEYBOARD_KEY_07003a=f6

No idea why it works in Krypton and not Leia, it’s working now so I’ll just put it down to magic and move on