aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 15:29:18 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 15:29:18 +0100
commita80477f2e7f4c18adcc6441828d17582aad2598f (patch)
treefc26007bf3c9ea463cb4572bc26cf176d4b85d63 /src/crepe/api
parent2ff3369a7aaf98936bf93f1c7c0dbfcaa38c31d7 (diff)
get_keyboard_state working
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h
index a9745c3..7b1a5ca 100644
--- a/src/crepe/api/Config.h
+++ b/src/crepe/api/Config.h
@@ -86,6 +86,12 @@ public:
*/
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 tolerance = 5;
+ } click_tolerance;
+
};
} // namespace crepe