Refactoring

This commit is contained in:
elasota
2020-01-05 16:41:04 -05:00
parent 1fba6f9e85
commit 645a997c7a
18 changed files with 174 additions and 186 deletions

View File

@@ -12,7 +12,7 @@ namespace PortabilityLayer
public:
InputManagerImpl();
void GetKeys(KeyDownStates &keyMap) const override;
const KeyDownStates *GetKeys() const override;
void ApplyKeyboardEvent(const GpKeyboardInputEvent &vosEvent) override;
void ApplyGamepadEvent(const GpGamepadInputEvent &vosEvent) override;
int16_t GetGamepadAxis(unsigned int playerNum, GpGamepadAxis_t gamepadAxis) override;
@@ -30,9 +30,9 @@ namespace PortabilityLayer
static InputManagerImpl ms_instance;
};
void InputManagerImpl::GetKeys(KeyDownStates &keyMap) const
const KeyDownStates *InputManagerImpl::GetKeys() const
{
keyMap = m_keyMap;
return &m_keyMap;
}
void InputManagerImpl::ApplyKeyboardEvent(const GpKeyboardInputEvent &vosEvent)