From 00c45406de165e78bf0636467026c2ce5902b9f9 Mon Sep 17 00:00:00 2001 From: lif <> Date: Mon, 16 Dec 2024 01:51:12 -0800 Subject: [PATCH] field comments --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 9c6a898..6c35d6f 100644 --- a/main.c +++ b/main.c @@ -33,6 +33,7 @@ #error "unknown pixel format" #endif +/* state that must be accessible by libmgba camera callbacks */ static SDL_Surface* scaled = NULL; static SDL_Surface* filtered[NUM_CHANNELS] = { NULL, NULL, NULL }; @@ -41,8 +42,10 @@ struct AppState { SDL_Window* window; SDL_Renderer* renderer; + /* indices used by SelectCamera */ int cam_idx, spec_idx; + /* used by FlipCamera */ SDL_CameraID front_camera; SDL_CameraID back_camera; @@ -51,6 +54,7 @@ struct AppState { SDL_Surface* screens[NUM_CHANNELS]; struct mCore* cores[NUM_CHANNELS]; + /* GB button presses fed to mgba */ unsigned keys; };