1) Stop using lirc, anything lirc related, in fact uninstall lirc. IRSS looks like some "IR Server Suite" Stop using it. Forget it exists.
2) Your remote thinks it is a keyboard. Your OS thinks your remote is a keyboard. Your remote is a keyboard.
3) Get a keyboard. Press a button. See what SDLKeyboard does. Press a modifier key and a button. See what it says.
For example this is the alphabet:
Code:
09:33:30 T:2689828160 M:5455740928 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 97, modifier: 0
09:33:30 T:2689828160 M:5455765504 DEBUG: SDLKeyboard: scancode: 45, sym: 110, unicode: 98, modifier: 0
09:33:31 T:2689828160 M:5455642624 DEBUG: SDLKeyboard: scancode: 34, sym: 105, unicode: 99, modifier: 0
09:33:31 T:2689828160 M:5457203200 DEBUG: SDLKeyboard: scancode: 4, sym: 104, unicode: 100, modifier: 0
09:33:31 T:2689828160 M:5456576512 DEBUG: SDLKeyboard: scancode: 2, sym: 100, unicode: 101, modifier: 0
09:33:32 T:2689828160 M:5456506880 DEBUG: SDLKeyboard: scancode: 16, sym: 121, unicode: 102, modifier: 0
09:33:32 T:2689828160 M:5456318464 DEBUG: SDLKeyboard: scancode: 32, sym: 117, unicode: 103, modifier: 0
09:33:33 T:2689828160 M:5455712256 DEBUG: SDLKeyboard: scancode: 38, sym: 106, unicode: 104, modifier: 0
09:33:33 T:2689828160 M:5455712256 DEBUG: SDLKeyboard: scancode: 5, sym: 103, unicode: 105, modifier: 0
09:33:35 T:2689828160 M:5462970368 DEBUG: SDLKeyboard: scancode: 8, sym: 99, unicode: 106, modifier: 0
09:33:35 T:2689828160 M:5462396928 DEBUG: SDLKeyboard: scancode: 9, sym: 118, unicode: 107, modifier: 0
09:33:36 T:2689828160 M:5462388736 DEBUG: SDLKeyboard: scancode: 35, sym: 112, unicode: 108, modifier: 0
09:33:36 T:2689828160 M:5462405120 DEBUG: SDLKeyboard: scancode: 46, sym: 109, unicode: 109, modifier: 0
09:33:36 T:2689828160 M:5461913600 DEBUG: SDLKeyboard: scancode: 37, sym: 108, unicode: 110, modifier: 0
09:33:36 T:2689828160 M:5461458944 DEBUG: SDLKeyboard: scancode: 1, sym: 115, unicode: 111, modifier: 0
09:33:37 T:2689828160 M:5461499904 DEBUG: SDLKeyboard: scancode: 15, sym: 114, unicode: 112, modifier: 0
09:33:37 T:2689828160 M:5461508096 DEBUG: SDLKeyboard: scancode: 7, sym: 120, unicode: 113, modifier: 0
09:33:37 T:2689828160 M:5460905984 DEBUG: SDLKeyboard: scancode: 31, sym: 111, unicode: 114, modifier: 0
09:33:38 T:2689828160 M:5460901888 DEBUG: SDLKeyboard: scancode: 41, sym: 59, unicode: 115, modifier: 0
09:33:38 T:2689828160 M:5456723968 DEBUG: SDLKeyboard: scancode: 40, sym: 107, unicode: 116, modifier: 0
09:33:38 T:2689828160 M:5456723968 DEBUG: SDLKeyboard: scancode: 3, sym: 102, unicode: 117, modifier: 0
09:33:38 T:2689828160 M:5456134144 DEBUG: SDLKeyboard: scancode: 47, sym: 46, unicode: 118, modifier: 0
09:33:39 T:2689828160 M:5456158720 DEBUG: SDLKeyboard: scancode: 43, sym: 44, unicode: 119, modifier: 0
09:33:40 T:2689828160 M:5454839808 DEBUG: SDLKeyboard: scancode: 11, sym: 98, unicode: 120, modifier: 0
09:33:40 T:2689828160 M:5454831616 DEBUG: SDLKeyboard: scancode: 17, sym: 116, unicode: 121, modifier: 0
09:33:40 T:2689828160 M:5454233600 DEBUG: SDLKeyboard: scancode: 44, sym: 47, unicode: 122, modifier: 0
Shift, Left Control, Left Alt, Left Command (I'm on a Mac), Right Command, Right Alt, Right Shift + A (I have no Right Control).
Code:
09:35:52 T:2689828160 M:5452840960 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 65, modifier: 1
09:36:05 T:2689828160 M:5449097216 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 1, modifier: 40
09:36:12 T:2689828160 M:5445640192 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 229, modifier: 100
09:36:22 T:2689828160 M:5448773632 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 97, modifier: 400
09:36:28 T:2689828160 M:5445808128 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 97, modifier: 800
09:36:35 T:2689828160 M:5449887744 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 229, modifier: 200
09:36:40 T:2689828160 M:5446856704 DEBUG: SDLKeyboard: scancode: 0, sym: 97, unicode: 65, modifier: 2
Hopefully you can do some pattern matching and figure out how to decode modifiers and syms.
My girlfriend has a fake MCE remote. I sat down and opened an excel spreadsheet and pressed every single button from top to bottom, recorded what the keys were and then made a
keyboard.xml map based on that.