summary refs log tree commit diff stats
path: root/src/components/controllable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/controllable.h')
-rw-r--r--src/components/controllable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/controllable.h b/src/components/controllable.h index 317d68d..baccf13 100644 --- a/src/components/controllable.h +++ b/src/components/controllable.h
@@ -14,20 +14,20 @@ class ControllableComponent : public Component {
14 void setJumpKey(int k); 14 void setJumpKey(int k);
15 int getDropKey() const; 15 int getDropKey() const;
16 void setDropKey(int k); 16 void setDropKey(int k);
17 17
18 bool isFrozen() const; 18 bool isFrozen() const;
19 void setFrozen(bool f); 19 void setFrozen(bool f);
20 bool isHoldingLeft() const; 20 bool isHoldingLeft() const;
21 void setHoldingLeft(bool f); 21 void setHoldingLeft(bool f);
22 bool isHoldingRight() const; 22 bool isHoldingRight() const;
23 void setHoldingRight(bool f); 23 void setHoldingRight(bool f);
24 24
25 private: 25 private:
26 int leftKey = GLFW_KEY_LEFT; 26 int leftKey = GLFW_KEY_LEFT;
27 int rightKey = GLFW_KEY_RIGHT; 27 int rightKey = GLFW_KEY_RIGHT;
28 int jumpKey = GLFW_KEY_UP; 28 int jumpKey = GLFW_KEY_UP;
29 int dropKey = GLFW_KEY_DOWN; 29 int dropKey = GLFW_KEY_DOWN;
30 30
31 bool frozen = false; 31 bool frozen = false;
32 bool holdingLeft = false; 32 bool holdingLeft = false;
33 bool holdingRight = false; 33 bool holdingRight = false;