summaryrefslogtreecommitdiffstats
path: root/src/core/settings.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-02 02:52:51 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-19 05:21:33 +0100
commit152422bab1382575e951c1c11b5de3013b8b402a (patch)
tree4570cf52793caa2bd7bf1971f2c7dd945889112d /src/core/settings.h
parentAdded missing start/end touch attributes to touchscreen (diff)
downloadyuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.gz
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.bz2
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.lz
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.xz
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.tar.zst
yuzu-152422bab1382575e951c1c11b5de3013b8b402a.zip
Diffstat (limited to '')
-rw-r--r--src/core/settings.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/settings.h b/src/core/settings.h
index e424479f2..d9aa14cd2 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -111,6 +111,30 @@ static const std::array<const char*, NumAnalogs> mapping = {{
}};
} // namespace NativeAnalog
+namespace NativeMouseButton {
+enum Values {
+ Left,
+ Right,
+ Middle,
+ Forward,
+ Back,
+
+ NumMouseButtons,
+};
+
+constexpr int MOUSE_HID_BEGIN = Left;
+constexpr int MOUSE_HID_END = NumMouseButtons;
+constexpr int NUM_MOUSE_HID = NumMouseButtons;
+
+static const std::array<const char*, NumMouseButtons> mapping = {{
+ "left",
+ "right",
+ "middle",
+ "forward",
+ "back",
+}};
+} // namespace NativeMouseButton
+
struct Values {
// System
bool use_docked_mode;
@@ -122,6 +146,9 @@ struct Values {
// Controls
std::array<std::string, NativeButton::NumButtons> buttons;
std::array<std::string, NativeAnalog::NumAnalogs> analogs;
+ bool mouse_enabled;
+ std::string mouse_device;
+ MouseButtonsRaw mouse_buttons;
std::string motion_device;
std::string touch_device;
std::atomic_bool is_device_reload_pending{true};