summaryrefslogtreecommitdiffhomepage
path: root/dinput/win32-joystick.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-02 18:24:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-02 18:24:48 +0200
commit53382473b3ed8266a6355de0954f324efdc5192f (patch)
treeb8c21206d88ab6bc0dc27e36bf1a34352badef3c /dinput/win32-joystick.hpp
parent5ea61a6b6f2cc587cf3aeb0cf16f2f492b20b52f (diff)
dinput: fix clang "non-constant-expression" error
Diffstat (limited to 'dinput/win32-joystick.hpp')
-rw-r--r--dinput/win32-joystick.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp
index f7ea1302..8b71b8b7 100644
--- a/dinput/win32-joystick.hpp
+++ b/dinput/win32-joystick.hpp
@@ -35,7 +35,7 @@ struct hash<QString>
};
}
-struct OTR_DINPUT_EXPORT win32_joy_ctx
+struct OTR_DINPUT_EXPORT win32_joy_ctx final
{
using fn = std::function<void(const QString& guid, int btn, bool held)>;
@@ -97,6 +97,8 @@ private:
~enum_state();
void refresh();
const joys_t& get_joys() const;
+
+ enum_state(enum_state const&) = delete;
};
static enum_state enumerator;