dxxb / sim-arduboy

Arduboy board implementation using simavr
GNU General Public License v3.0
22 stars 8 forks source link

Compiling on gameshell clockworkpi #22

Open arthurlutz opened 3 years ago

arthurlutz commented 3 years ago

I'm happy to have sim-arduboy compiling and running on the gameshell clockworkpi https://www.clockworkpi.com/ (running debian bullseye). Thanks for working and publishing this piece of software !

Here is a video of it running : https://imgur.com/nkUQkeS

It has some glitches I need to investigate (gets stuck from time to time).

Could you give me an example keymap, it seems to be an undocumented feature (sorry if I missed the docs...).

dbrignoli commented 3 years ago

Nice! 😄

  1. Default keys are defined here: https://github.com/dxxb/sim-arduboy/blob/9e48de068270d58aaa5bb692ffab7290bb7733f1/src/arduboy_sdl.c#L35
  2. Values are SDLK_* constant values which can be found here: https://github.com/libsdl-org/SDL/blob/main/include/SDL_keycode.h

On the command line the keymap is specified by passing a comma-separated list of, maximum 6, integers to the -k switch. The code could be improved to accept scancode symbol names instead of integers.