Author Topic: Customizing keys for CapriceRPI(2) ?  (Read 1133 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
Customizing keys for CapriceRPI(2) ?
« on: 16:28, 26 September 18 »
Hi @KaosOverride ,

I am trying to customize the keys of
for the Pocket CHIP. See, the function keys don't work there. For Caprice32, I was able to modifiy the 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


Offline KaosOverride

  • 464 Plus
  • *****
  • Posts: 312
  • Country: es
  • Liked: 195
  • Likes Given: 44
Re: Customizing keys for CapriceRPI(2) ?
« Reply #1 on: 11:39, 27 September 18 »
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
« Last Edit: 11:43, 27 September 18 by KaosOverride »


  • Guest
Re: Customizing keys for CapriceRPI(2) ?
« Reply #2 on: 17:03, 27 September 18 »
No worries, thanks for checking!