change IsAnyKeyDown to IsAnyButtonDown and add Float2.Normalized

This commit is contained in:
Ruan Lucas
2023-01-26 08:54:15 -04:00
parent d20bce9967
commit 82e9923be3
5 changed files with 18 additions and 5 deletions

View File

@@ -183,7 +183,7 @@ void Mouse::OnMouseDown(const Float2& position, const MouseButton button, Window
e.MouseData.Position = position;
}
bool Mouse::IsAnyKeyDown() const
bool Mouse::IsAnyButtonDown() const
{
// TODO: optimize with SIMD
bool result = false;