Unable to Use/Remap OK Button on a Universal Remote

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
raziel
Posts: 4
Joined: Fri Oct 15, 2021 8:12 am
Has thanked: 1 time

Unable to Use/Remap OK Button on a Universal Remote

Unread post 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?

spud_q
Posts: 12
Joined: Wed Jan 19, 2022 8:07 am
Has thanked: 2 times
Been thanked: 5 times

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

Unread post by spud_q »

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

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

raziel
Posts: 4
Joined: Fri Oct 15, 2021 8:12 am
Has thanked: 1 time

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

Unread post 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?

spud_q
Posts: 12
Joined: Wed Jan 19, 2022 8:07 am
Has thanked: 2 times
Been thanked: 5 times

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

Unread post 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/

raziel
Posts: 4
Joined: Fri Oct 15, 2021 8:12 am
Has thanked: 1 time

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

Unread post 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.

Missus
Posts: 183
Joined: Fri Jan 27, 2023 12:45 am
Has thanked: 48 times
Been thanked: 43 times

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

Unread post 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?

raziel
Posts: 4
Joined: Fri Oct 15, 2021 8:12 am
Has thanked: 1 time

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

Unread post by raziel »

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

Post Reply