Use Mouse Click for Touchpad Button in GUI (#167)

This commit is contained in:
3kinox 2020-02-16 17:59:09 +01:00 committed by GitHub
commit fe1e3835f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#include <QObject>
#include <QImage>
#include <QMouseEvent>
#if CHIAKI_GUI_ENABLE_QT_GAMEPAD
class QGamepad;
@ -105,6 +106,7 @@ class StreamSession : public QObject
VideoDecoder *GetVideoDecoder() { return &video_decoder; }
void HandleKeyboardEvent(QKeyEvent *event);
void HandleMouseEvent(QMouseEvent *event);
signals:
void CurrentImageUpdated();

View file

@ -44,6 +44,8 @@ class StreamWindow: public QMainWindow
void keyPressEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
void closeEvent(QCloseEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
private slots:
void SessionQuit(ChiakiQuitReason reason, const QString &reason_str);