[Qt] Add touchscreen

This commit is contained in:
wheremyfoodat 2024-01-29 21:07:21 +02:00
parent eabd22423c
commit 9cc3fc0c4c
2 changed files with 49 additions and 0 deletions

View file

@ -42,6 +42,8 @@ class MainWindow : public QMainWindow {
SetCirclePadY,
LoadLuaScript,
EditCheat,
PressTouchscreen,
ReleaseTouchscreen,
};
// Tagged union representing our message queue messages
@ -68,6 +70,11 @@ class MainWindow : public QMainWindow {
struct {
CheatMessage* c;
} cheat;
struct {
u16 x;
u16 y;
} touchscreen;
};
};
@ -108,6 +115,9 @@ class MainWindow : public QMainWindow {
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
void loadLuaScript(const std::string& code);
void editCheat(u32 handle, const std::vector<uint8_t>& cheat, const std::function<void(u32)>& callback);
};