Simple SDL 1.2 app that displays buttons that have been pressed, aimed at the RG35XX handheld console (but likely to work on other systems)
Go to file
Petra 0fe787c016 Add requirements 2024-02-27 21:57:38 +13:00
.gitignore Initial commit 2024-02-27 18:55:16 +13:00
Makefile README 2024-02-27 21:28:00 +13:00
Readme.md Add requirements 2024-02-27 21:57:38 +13:00
button_tester.sh Working button tester 2024-02-27 21:17:19 +13:00
tester.c Working button tester 2024-02-27 21:17:19 +13:00

Readme.md

This is a very simple program designed to print key/button codes with SDL 1.2, intended for the RG35XX but potentially working on other systems

Requirements

  • libSDL1.2
  • SDL_ttf
  • freetype2

Things you will need to change

  • In the makefile:
    • CROSS_COMPILE: Change to directory+prefix of toolchain
    • XC_BUILD_DIR: Prefix where SDL 1.2, SDL_ttf, etc have been built under; probably needs to be absolute path

Things you might need to change

  • In the makefile:
    • DEFINES: Specifically changing the font path
  • In tester.c
    • DISPLAY_W, DISPLAY_H: size of display
    • FONT_SIZE: Bigger or smaller as needed
    • JOYSTICK_QUIT_BUTTON: Button index on the joystick that needs to be pressed multiple times to quit
    • KEYBOARD_QUIT_KEY: Keyboard quit key