First working version of desktop emulator with game launcher support. Includes local stubs and launcher logic.
This commit is contained in:
27
emulator/input_event.h
Normal file
27
emulator/input_event.h
Normal 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
|
||||
Reference in New Issue
Block a user