Page 1 of 1

Unable to Use/Remap OK Button on a Universal Remote

Posted: Mon Jul 03, 2023 12:30 pm
by raziel

I have bought an universal remote for navigating the menus in MiSTer. However I have a problem with the ok button. I cannot use it to enter menu (like the enter key). I have found out that The OK button has a keycode 353, which means KEY_SELECT.

I have tried to remap the button using the MiSTer map keyboard function. However it does not register the key press when asked to press the key, so it cannot be remapped.

The remote is this: https://www.amazon.com/dp/B07NNWRG3B

Any suggestions?


Re: Unable to Use/Remap OK Button on a Universal Remote

Posted: Mon Jul 03, 2023 6:54 pm
by spud_q

Is this useful? I haven’t tried it for myself yet.

https://mmmonkey.co.uk/mister-remote-control/


Re: Unable to Use/Remap OK Button on a Universal Remote

Posted: Tue Jul 04, 2023 7:19 am
by raziel
spud_q wrote: Mon Jul 03, 2023 6:54 pm

Is this useful? I haven’t tried it for myself yet.

https://mmmonkey.co.uk/mister-remote-control/

Thanks for the suggestion spud_q. I don't think the solution works for me, because in the map file, the keys that are reassigned have keycodes that are less than 256 (i.e. 1 byte) Hover the key that I want to use has a keycode of 353 (i.e. 2 bytes).

I have been googling and found some general linux solution that involves udev rules:

https://unix.stackexchange.com/question ... d-keycodes

Does anybody have any idea about this, would these udev rules work on MiSTer?


Re: Unable to Use/Remap OK Button on a Universal Remote

Posted: Tue Jul 04, 2023 1:55 pm
by spud_q

Hmm, the docs mention that some keys are not mappable. This might be what you have with that remote.

“Some multimedia keys generate several key codes - these keys cannot be remapped.”

https://mister-devel.github.io/MkDocs_M ... /keyboard/


Re: Unable to Use/Remap OK Button on a Universal Remote

Posted: Tue Jul 04, 2023 5:04 pm
by raziel

Indeed, it seems that it is not possible to remap the button using the MiSTer map keyboard functionality nor the map file. Maybe because these methods only deal with 1 byte keycodes.

However it is certainly possible to do the remapping in a general linux distribution, just that the process is a bit more involved. I was wandering if anybody has tried that on MiSTer.


Re: Unable to Use/Remap OK Button on a Universal Remote

Posted: Tue Jul 04, 2023 8:28 pm
by Missus

maybe a little extreme but how about a hardware approach? desolder the button you want to use on the remote itself to another button that does allow mapping?


Re: Unable to Use/Remap OK Button on a Universal Remote

Posted: Wed Jul 05, 2023 6:43 am
by raziel

Thanks for the suggestion, but that's a bit extreme for me. My soldering skills are not that good anyway :)