diff --git a/Hazel/src/Platform/Windows/WindowInput.cpp b/Hazel/src/Platform/Windows/WindowInput.cpp index d19c667..9b4bfcf 100644 --- a/Hazel/src/Platform/Windows/WindowInput.cpp +++ b/Hazel/src/Platform/Windows/WindowInput.cpp @@ -8,14 +8,14 @@ namespace Hazel { - bool Input::IsKeyPressed(const int key) + bool Input::IsKeyPressed(const KeyCode key) { const auto state = SDL_GetKeyboardState(nullptr); return state[key]; } - bool Input::IsMouseButtonPressed(const int button) + bool Input::IsMouseButtonPressed(const MouseButton button) { const auto mod = SDL_GetMouseState(nullptr, nullptr); return mod & SDL_BUTTON_MASK(button);