summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-14 10:37:55 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-14 10:37:55 +0200
commit630417be3d6e153f8b178cd81addce3f321939ef (patch)
tree467e8735aa448604fbdc48a58ae1af2fb71f6f64 /src/control
parenta456c693152d35fb00fd321d976d5f5def10aa1c (diff)
control: Document ControlFlag enum values
Diffstat (limited to 'src/control')
-rw-r--r--src/control/control.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/control/control.h b/src/control/control.h
index 5ff49bcd4b..fb7c5abfc3 100644
--- a/src/control/control.h
+++ b/src/control/control.h
@@ -15,8 +15,13 @@ class ControlObject;
enum class ControlFlag {
None = 0,
- AllowEmptyKey = 1,
+ /// Do not throw an assertion if the key is invalid. Needed for controller
+ /// mappings and skins.
+ AllowInvalidKey = 1,
+ /// Don't throw an assertion when trying to access a non-existing CO.
+ /// Needed for controller mappings and skins.
NoAssertIfMissing = 1 << 1,
+ /// Don't log a warning when trying to access a non-existing CO.
NoWarnIfMissing = (1 << 2) | NoAssertIfMissing,
};