aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Config.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 14:35:36 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 14:35:36 +0100
commitbd26d3812aceab9cfcd55c19b17271cd6ef4ccb0 (patch)
tree4f2118294118a751a4b83167a7fea4fcd0bea899 /src/crepe/api/Config.h
parent7039acfa49e64b6865c7897de29a1b812b8df7d0 (diff)
parentc96ef5f62a1369d66e8eba9bf8ed192e3cf8e716 (diff)
Merge branch 'master' into niels/UI
Diffstat (limited to 'src/crepe/api/Config.h')
-rw-r--r--src/crepe/api/Config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h
index ca2d3f1..ed1cf38 100644
--- a/src/crepe/api/Config.h
+++ b/src/crepe/api/Config.h
@@ -76,6 +76,11 @@ struct Config final {
*/
std::string root_pattern = ".crepe-root";
} asset;
+ //! Configuration for click tolerance.
+ struct {
+ //! The maximum number of pixels the mouse can move between MouseDown and MouseUp events to be considered a click.
+ int click_tolerance = 5;
+ } input;
//! Audio system settings
struct {