Added charviewer

This commit is contained in:
2026-01-05 08:57:38 -05:00
parent 0601a8d767
commit 7cff27f035
14 changed files with 342 additions and 0 deletions

12
include/controller.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef _GAMEPAD_H_
#define _GAMEPAD_H_
#include <SDL3/SDL.h>
#include <sdlerror.h>
ErrorContext ERROR_NOIGNORE *gamepad_handle_button_down(void *appstate, SDL_Event *event);
ErrorContext ERROR_NOIGNORE *gamepad_handle_button_up(void *appstate, SDL_Event *event);
ErrorContext ERROR_NOIGNORE *gamepad_handle_added(void *appstate, SDL_Event *event);
ErrorContext ERROR_NOIGNORE *gamepad_handle_removed(void *appstate, SDL_Event *event);
#endif // _GAMEPAD_H_