mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[Qt] Add touchscreen
This commit is contained in:
parent
eabd22423c
commit
9cc3fc0c4c
2 changed files with 49 additions and 0 deletions
|
@ -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);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue