diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-08-23 08:04:26 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-08-26 02:32:32 -0400 |
commit | 1bd70d73c00697f0705ba9b51da5938146224a18 (patch) | |
tree | f0235849ea00e05eac5e11054e8cd780ef30bfb5 /src/yuzu/configuration/configure_input_player.h | |
parent | eb149ec696b4d06d1e42071c9ae05b88541e60d9 (diff) |
configuration/input: Add support for mouse button clicks
Supports the Left, Right, Middle, Backward and Forward mouse buttons.
Diffstat (limited to 'src/yuzu/configuration/configure_input_player.h')
-rw-r--r-- | src/yuzu/configuration/configure_input_player.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.h index a86db8200..ca189019d 100644 --- a/src/yuzu/configuration/configure_input_player.h +++ b/src/yuzu/configuration/configure_input_player.h @@ -85,6 +85,9 @@ private: /// Finish polling and configure input using the input_setter. void SetPollingResult(const Common::ParamPackage& params, bool abort); + /// Handle mouse button press events. + void mousePressEvent(QMouseEvent* event) override; + /// Handle key press events. void keyPressEvent(QKeyEvent* event) override; @@ -150,7 +153,7 @@ private: /// A flag to indicate if keyboard keys are okay when configuring an input. If this is false, /// keyboard events are ignored. - bool want_keyboard_keys = false; + bool want_keyboard_mouse = false; /// List of physical devices users can map with. If a SDL backed device is selected, then you /// can usue this device to get a default mapping. |