diff options
Diffstat (limited to 'src/engine/user')
-rw-r--r-- | src/engine/user/cursor.hpp | 2 | ||||
-rw-r--r-- | src/engine/user/cursor.tpp | 2 | ||||
-rw-r--r-- | src/engine/user/input.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/user/cursor.hpp b/src/engine/user/cursor.hpp index 69d639a..70a2bf2 100644 --- a/src/engine/user/cursor.hpp +++ b/src/engine/user/cursor.hpp @@ -28,7 +28,7 @@ public: CursorController() = default; template <Direction::value_type direction> - constexpr void move(const unsigned int &amount) const; + constexpr void move(const uint32_t &amount) const; static void move_to(const Vector2 &pos); diff --git a/src/engine/user/cursor.tpp b/src/engine/user/cursor.tpp index 224418e..0743ae8 100644 --- a/src/engine/user/cursor.tpp +++ b/src/engine/user/cursor.tpp @@ -19,7 +19,7 @@ constexpr auto get_direction_format_map() } template <Direction::value_type direction> -constexpr void CursorController::move(const unsigned int &amount) const +constexpr void CursorController::move(const uint32_t &amount) const { constexpr auto direction_format_map = get_direction_format_map(); diff --git a/src/engine/user/input.cpp b/src/engine/user/input.cpp index e68f303..1dc7f63 100644 --- a/src/engine/user/input.cpp +++ b/src/engine/user/input.cpp @@ -46,7 +46,7 @@ void InputHandler::enter_raw_mode() auto raw_termios = termios(*_original_termios); - raw_termios.c_lflag &= static_cast<unsigned int>(~(ECHO | ICANON | ISIG)); + raw_termios.c_lflag &= static_cast<uint32_t>(~(ECHO | ICANON | ISIG)); tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw_termios); } |