From 13e6b0e7be72b13ac0d301244b6b08a17f6e7b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Thu, 10 Jun 2021 11:03:46 +0200 Subject: [PATCH] small weird fixes --- sources/Component/Keyboard/KeyboardComponent.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/Component/Keyboard/KeyboardComponent.hpp b/sources/Component/Keyboard/KeyboardComponent.hpp index acd06b94..b461f215 100644 --- a/sources/Component/Keyboard/KeyboardComponent.hpp +++ b/sources/Component/Keyboard/KeyboardComponent.hpp @@ -21,7 +21,7 @@ namespace BBM //! @brief bomb key Key keyBomb = KEY_E; //! @brief pause key - Key keyPause = RAY::Controller::Keyboard::Key::KEY_ESCAPE; + Key keyPause = KEY_ESCAPE; //! @brief move right key Key keyRight = KEY_D; //! @brief move left key @@ -35,14 +35,14 @@ namespace BBM WAL::Component *clone(WAL::Entity &entity) const override; //! @brief Create a new keyboard component using custom keys. - KeyboardComponent(WAL::Entity &entity, + explicit KeyboardComponent(WAL::Entity &entity, Key up = KEY_W, Key down = KEY_S, Key left = KEY_A, Key right = KEY_D, Key jump = KEY_SPACE, Key bomb = KEY_E, - Key pause = RAY::Controller::Keyboard::Key::KEY_ESCAPE); + Key pause = KEY_ESCAPE); //! @brief A Keyboard component is copy constructable. KeyboardComponent(const KeyboardComponent &) = default;