[client] ds: refactor app and cursor state into app.c and core.c

This commit is contained in:
Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 33fed48277
commit 4e1c0cc0d0
7 files changed
+210 -219

No files matched your search

+5 -5
View File
@@ -37,16 +37,16 @@ LG_MsgAlert;
bool app_isRunning(void);
bool app_inputEnabled(void);
bool app_cursorIsGrabbed(void);
bool app_cursorWantsRaw(void);
bool app_cursorInWindow(void);
void app_updateCursorPos(double x, double y);
void app_updateWindowPos(int x, int y);
void app_handleResizeEvent(int w, int h, const struct Border border);
void app_handleMouseGrabbed(double ex, double ey);
void app_handleMouseNormal(double ex, double ey);
void app_handleMouseRelitive(double normx, double normy,
double rawx, double rawy);
void app_handleMouseBasic(void);
void app_resyncMouseBasic(void);
void app_handleButtonPress(int button);
void app_handleButtonRelease(int button);
void app_handleKeyPress(int scancode);