mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
KeyboardController has a default position which is the center of the screen
This commit is contained in:
parent
fe70fdcfe5
commit
2b358a98d3
@ -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);
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user