Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Looks like CTRL handling was overlooked.
Could you try with ALT to see if it works ok in that situation?
Posts: 9
Joined: May 2014
Reputation:
0
Thanks Koying! Yes, I've just tested using a keyboard and I see that ALT is working correctly, and SHIFT is basically working as well. An interesting exception is that shift+d (for example) is recognized correctly as shift+d, but shift+ctrl+d is recognized as d. Using "d" as an example:
alt+d => alt+d
alt+shift+d => alt+shift+d
alt+shift+ctrl+d => alt+shift+d
ctrl+d => d
shift+d => shift+d
shift+ctrl+d => d
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Strange. Mind providing a log snippet?
Posts: 9
Joined: May 2014
Reputation:
0
2014-05-31, 23:48
(This post was last modified: 2014-06-01, 00:13 by toddsay.)
Sure, glad to help in any way. Here's what I get when I press the tv and music icons on the MCE remote (shft+ctrl+t, and ctrl+m). Looking at that I notice it is "leftshift" and "leftctrl". Maybe the "left" part is confusing things?
14:42:30 T:1545825664 DEBUG: Keyboard: scancode: 0x71, sym: 0x0132, unicode: 0x0000, modifier: 0x0
14:42:30 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftctrl (0xf0d0) pressed, action is
14:42:30 T:1545825664 DEBUG: Keyboard: scancode: 0x3b, sym: 0x0130, unicode: 0x0000, modifier: 0x1
14:42:30 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftshift (0xf0d2) pressed, action is
14:42:30 T:1545825664 DEBUG: Keyboard: scancode: 0x30, sym: 0x0074, unicode: 0x0000, modifier: 0x1
14:42:30 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): t (0xf054) pressed, action is
14:42:31 T:1545825664 DEBUG: Keyboard: scancode: 0x71, sym: 0x0132, unicode: 0x0000, modifier: 0x0
14:42:31 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftctrl (0xf0d0) pressed, action is
14:42:31 T:1545825664 DEBUG: Keyboard: scancode: 0x29, sym: 0x006d, unicode: 0x0000, modifier: 0x0
14:42:31 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): m (0xf04d) pressed, action is ActivateWindow(PlayerControls)
Here's what I get when I press those same two sequences on a keyboard:
14:45:56 T:1545825664 DEBUG: Keyboard: scancode: 0x3b, sym: 0x0130, unicode: 0x0000, modifier: 0x1
14:45:56 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftshift (0xf0d2) pressed, action is
14:45:56 T:1545825664 DEBUG: Keyboard: scancode: 0x71, sym: 0x0132, unicode: 0x0000, modifier: 0x1
14:45:56 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftctrl (0xf0d0) pressed, action is
14:45:56 T:1545825664 DEBUG: Keyboard: scancode: 0x30, sym: 0x0074, unicode: 0x0000, modifier: 0x1
14:45:56 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): t (0xf054) pressed, action is
14:45:58 T:1545825664 DEBUG: Keyboard: scancode: 0x71, sym: 0x0132, unicode: 0x0000, modifier: 0x0
14:45:58 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftctrl (0xf0d0) pressed, action is
14:45:59 T:1545825664 DEBUG: Keyboard: scancode: 0x29, sym: 0x006d, unicode: 0x0000, modifier: 0x0
14:45:59 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): m (0xf04d) pressed, action is ActivateWindow(PlayerControls)
Posts: 9
Joined: May 2014
Reputation:
0
I should add the working "alt+shift+d" example:
15:10:52 T:1545825664 DEBUG: Keyboard: scancode: 0x3b, sym: 0x0130, unicode: 0x0000, modifier: 0x1
15:10:52 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): leftshift (0xf0d2) pressed, action is
15:10:52 T:1545825664 DEBUG: Keyboard: scancode: 0x39, sym: 0x0134, unicode: 0x0000, modifier: 0x101
15:10:52 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): shift-alt-leftalt (0x6f0d4) pressed, action is
15:10:53 T:1545825664 DEBUG: Keyboard: scancode: 0x39, sym: 0x0134, unicode: 0x0000, modifier: 0x101
15:10:53 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): shift-alt-leftalt (0x6f0d4) pressed, action is
15:10:53 T:1545825664 DEBUG: Keyboard: scancode: 0x39, sym: 0x0134, unicode: 0x0000, modifier: 0x101
15:10:53 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): shift-alt-leftalt (0x6f0d4) pressed, action is
15:10:53 T:1545825664 DEBUG: Keyboard: scancode: 0x20, sym: 0x0064, unicode: 0x0000, modifier: 0x101
15:10:53 T:1545825664 DEBUG: bool CApplication::OnKey(const CKey&): shift-alt-d (0x6f044) pressed, action is
Posts: 9
Joined: May 2014
Reputation:
0
Sweet! Thanks a lot for that prompt fix! Also nice to know I was looking in the right place.
On the shift+ctrl+d thing, maybe I'm just not understanding what it was supposed to show there. I saw output like "shift-alt-d (0x6f044) pressed", so I assumed that my shift+ctrl+d example would have said something like "shift-d pressed" and it only said "d pressed". But I do see that it shows the modifier value correctly so perhaps that is a non-issue.
Posts: 9
Joined: May 2014
Reputation:
0
I loaded the latest nightly build, and indeed the control key is working great now! Actually I tried every combination of alt/shift/ctrl and everything looked correct. And now using my MCE remote I have access to additional keys, so I'm off to work on my keymap...
Thanks again Koying!
Posts: 10
Joined: Jun 2014
Reputation:
0
rwzx7
Junior Member
Posts: 10
I'm also using the Ortek VRC1100 MCE remote with an Amazon FireTV with Gotham 13.1. I have successfully remapped most of the buttons using KeyMap Editor to obtain the 61xxx numbers & insert them into my keyboard.xml.
However, when doing this with the extra keys, the 61xxx number changes & does not remain the same. I've used the mapping from post 1 but does not seem to have any effect, regardless if they are remapped in the keyboard.xml or not.
I would like to remap the number keys on the Ortek also. KeyMap Editor doesn't register anything when pressing the number keys. I've obtained the correct commands for these keys by hooking the Ortek to a Win7 PC running ShowKey, and then used these in my keyboard.xml, but am not getting any response.
I notice that you have mentioned something about CTRL being overlooked? I also see that ALT worked? Do I need to change CTRL to ALT in my keyboard.xml, or is the fix deeper than that? Short of installing a nightly (which seemed to fix for toddsay), is there something I could do to my current configuration?. What I have noticed is the keyboard.xml works great with 61xxx numbers, when I can get them.
I've been reading myself stupid with key id's, key codes, decimal, hex, etc, and could really use some help in understanding whats going on here, & how to fix.
Also, Koying, I want to say thanks to you for all your hard work. I've read a lot of posts from you, which were paramount in helping me with Ouya and its passthrough/handshaking issues.