summaryrefslogtreecommitdiff
path: root/lib/models/input_direction.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/input_direction.dart')
-rw-r--r--lib/models/input_direction.dart14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/models/input_direction.dart b/lib/models/input_direction.dart
new file mode 100644
index 0000000..b15b880
--- /dev/null
+++ b/lib/models/input_direction.dart
@@ -0,0 +1,14 @@
+class InputDirection {
+ bool up = false;
+ bool down = false;
+ bool left = false;
+ bool right = false;
+
+ /// reset all directions to false
+ void reset() {
+ up = false;
+ down = false;
+ left = false;
+ right = false;
+ }
+}