Optimized Button class. Added IsPressed and GetPressed methods.

This commit is contained in:
2024-08-04 00:47:38 -07:00
parent 3970b8d402
commit 8d4420528a
14 changed files with 240 additions and 52 deletions

View File

@@ -7,7 +7,7 @@ namespace ehs
}
Keyboard::Keyboard(Str_8 name, const UInt_64 id)
: HID(EHS_HID_KEYBOARD, (Str_8&&)name, id)
: HID(EHS_HID_KEYBOARD, (Str_8 &&)name, id)
{
}
@@ -26,9 +26,9 @@ namespace ehs
return *this;
}
void Keyboard::Poll()
void Keyboard::Poll(const float delta)
{
HID::Poll();
HID::Poll(delta);
}
Keyboard* Keyboard::Clone() const