Skip to content

Commit

Permalink
rg_input: Fixed typo in SDL2 part
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Jun 28, 2024
1 parent dcf4db0 commit b7a0dea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/retro-go/rg_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ bool rg_input_read_gamepad_raw(uint32_t *out)
#ifdef RG_TARGET_SDL2
int numkeys = 0;
const uint8_t *keys = SDL_GetKeyboardState(&numkeys);
for (size_t i = 0; i < RG_COUNT(keymap); ++i)
for (size_t i = 0; i < RG_COUNT(keymap_kbd); ++i)
{
const rg_keymap_kbd_t *mapping = &keymap_kbd[i];
if (mapping->src < 0 || mapping->src >= numkeys)
Expand Down
1 change: 1 addition & 0 deletions components/retro-go/targets/sdl2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
#define __VERSION__ "TinyC"
#endif

#undef app_main
#define app_main(...) main(int argc, char **argv)
// #define rg_system_init(a, b, c) rg_system_init(argc, argv, a, b, c)

0 comments on commit b7a0dea

Please sign in to comment.