17 #ifndef BACKENDS_LIBRETRO_OS_H 18 #define BACKENDS_LIBRETRO_OS_H 20 #include "audio/mixer_intern.h" 21 #include "base/main.h" 23 #include "common/system.h" 24 #include "common/mutex.h" 25 #include "common/list.h" 26 #include "common/events.h" 27 #include "backends/modular-backend.h" 28 #include "graphics/managed_surface.h" 30 #define BASE_CURSOR_SPEED 4 31 #define CURSOR_STATUS_DOING_JOYSTICK (1 << 0) 32 #define CURSOR_STATUS_DOING_MOUSE (1 << 1) 33 #define CURSOR_STATUS_DOING_X (1 << 2) 34 #define CURSOR_STATUS_DOING_Y (1 << 3) 35 #define CURSOR_STATUS_DOING_SLOWER (1 << 4) 37 #define LIBRETRO_G_SYSTEM dynamic_cast<OSystem_libretro *>(g_system) 46 bool lock()
override {
49 bool unlock()
override {
64 float _adjusted_cursor_speed;
65 float _inverse_acceleration_time;
75 bool _mouseButtons[2];
83 void initBackend(
void)
override;
84 void engineInit(
void)
override;
85 void refreshRetroSettings(
void);
86 void refreshScreen(
void);
89 void resetGraphicsManager(
void);
91 int16 getScreenWidth(
void);
92 int16 getScreenHeight(
void);
93 bool inLauncher(
void);
96 void resetGraphicsContext(
void);
98 void *getOpenGLProcAddress(
const char *name)
const override;
105 uint32 getMillis(
bool skipRecord =
false)
override;
106 void delayMillis(uint msecs)
override;
108 void requestQuit(
void);
109 void resetQuit(
void);
110 void setMousePosition(
int x,
int y);
113 void getTimeAndDate(
TimeDate &t,
bool skipRecord)
const override;
117 int testGame(
const char *filedata,
bool autodetect);
119 const char *
const *buildHelpDialogData()
override;
122 void applyBackendSettings()
override;
125 bool checkPathSetting(
const char *setting,
Common::String const &defaultPath,
bool isDirectory =
true);
130 void processInputs(
void);
131 void processKeyEvent(
bool down,
unsigned keycode, uint32 character, uint16 key_modifiers);
133 void updateMouseXY(
float deltaAcc,
float *cumulativeXYAcc,
int doing_x);
134 void getMouseXYFromAnalog(
bool is_x, int16 coor);
135 void getMouseXYFromButton(
bool is_x, int16 sign);
Definition: managed_surface.h:51
Definition: modular-backend.h:48
Definition: libretro-os.h:42
Definition: mixer_intern.h:58
Definition: archive.h:312
Definition: libretro-os.h:54
Definition: base-backend.h:44
void quit() override
Definition: libretro-os.h:88