aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Config.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 13:27:08 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 13:27:08 +0100
commit438f5301d8b14fa53fef73a4356f4a5171ac91af (patch)
treee3b0e4389c620a9b1d7224a7c390293c2ea01321 /src/crepe/api/Config.h
parent644c1ee1a1f109ae293cc6b09fafe8ba8b448ff3 (diff)
parenta03f90fa9bcbd5a0c5b5d1f2e50df183c7c3640c (diff)
more WIP demo
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 d11f3f2..3cc67c2 100644
--- a/src/crepe/api/Config.h
+++ b/src/crepe/api/Config.h
@@ -74,6 +74,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 {