First working version of desktop emulator with game launcher support. Includes local stubs and launcher logic.

This commit is contained in:
Adolfo Reyna
2026-01-30 23:35:43 -05:00
parent d2fd001e70
commit c1423b66aa
28 changed files with 5074 additions and 0 deletions

27
emulator/input_event.h Normal file
View File

@@ -0,0 +1,27 @@
// Emulator copy of input_event.h
// Shared input event structures used by InputManager and Game classes
// Extracted from basic1.cpp for modular game architecture
#ifndef INPUT_EVENT_H
#define INPUT_EVENT_H
#include <stdint.h>
// Input event types
enum InputType {
INPUT_NONE = 0,
INPUT_TOUCH_DOWN,
INPUT_TOUCH_MOVE,
INPUT_TOUCH_UP,
INPUT_BUTTON_0,
INPUT_BUTTON_1,
INPUT_GESTURE
};
// Unified input event structure
struct InputEvent {
InputType type;
int16_t x;
int16_t y;
uint8_t gesture_code;
uint8_t button_id;
uint8_t pressure;
bool valid;
};
#endif // INPUT_EVENT_H