KeyboardController has a default position which is the center of the screen

This commit is contained in:
EddyFrc 2026-06-15 10:41:16 +02:00
parent fe70fdcfe5
commit 2b358a98d3
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,12 @@ KeyboardController::KeyboardController()
}
glm::vec2 KeyboardController::get_position()
{
// arbitrary values for test purpose
return {0.5, 0.5};
}
std::string KeyboardController::get_button_name(uint64 button) const
{
return WindowSystem::GetKeyCodeName(button);

View File

@ -19,6 +19,10 @@ public:
bool has_axis() const override { return false; }
bool has_position() override { return true; }
glm::vec2 get_position() override;
PositionVisibility GetPositionVisibility() override { return PositionVisibility::FULL; }
std::string get_button_name(uint64 button) const override;
protected: