News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
L

Customizing keys for CapriceRPI(2) ?

Started by LambdaMikel, 14:28, 26 September 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LambdaMikel

Hi @KaosOverride ,

I am trying to customize the keys of

https://github.com/KaosOverride/CapriceRPI
for the Pocket CHIP. See, the function keys don't work there. For Caprice32, I was able to modifiy the keymaps-us.map to simply use different SDLK_... keys and modifiers. However, I wasn't successful for CapriceRPI. There don't seem to be any such keymaps, and the source code lists a couple of keys such as SLK_F8, and CAP32_OPTION, and I tried to change the values in a couple of places such as menu.c etc, but to no avail.

Do you have any guidance on how to do that? The keycodes seem to be hard coded in some tables. I am not sure which ones I need to change.

Specially, I'd like to use ALT (SDLK_MOD_ALT) instead of the Function / FN key, because the FN key is not a modifier on the Pocket CHIP. Then, some other keys such as "'" (double quotes) need to be mapped to keys such as SDLK_MOD_ALT + "l", etc. (this is where the double quotes are on the Pocket CHIP keyboard)
Thaks and cheersMichael

Thanks!

KaosOverride

#1
When I ported Caprice32 to the GP2x I changed many things about input, because the joystick of the portable console was gpIO style, later included into the Gp2x SDL port.

Then when I ported the GP2x version to Raspberry, I again changed the input because had to add real SDL joystick back again. Sure all this will be fragile and have some key/sdl_event trouble when not under an standar USB keyboard.

Now I'm in hollidays so I'm far ago from my PC, I will take a look next week, sorry

Enviado desde mi SM-G950F mediante Tapatalk
KaosOverride · GitHub
MEGA Amstrad Public Amstrad folder

LambdaMikel

No worries, thanks for checking!

Michael

Powered by SMFPacks Menu Editor Mod