mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
23 lines
553 B
C++
23 lines
553 B
C++
#pragma once
|
|
|
|
#include "GpVOSEvent.h"
|
|
|
|
struct GpKeyboardInputEvent;
|
|
struct GpGamepadInputEvent;
|
|
struct KeyDownStates;
|
|
|
|
namespace PortabilityLayer
|
|
{
|
|
class InputManager
|
|
{
|
|
public:
|
|
virtual const KeyDownStates *GetKeys() const = 0;
|
|
virtual void ApplyKeyboardEvent(const GpKeyboardInputEvent &vosEvent) = 0;
|
|
virtual void ApplyGamepadEvent(const GpGamepadInputEvent &vosEvent) = 0;
|
|
virtual int16_t GetGamepadAxis(unsigned int playerNum, GpGamepadAxis_t gamepadAxis) = 0;
|
|
virtual void ClearState() = 0;
|
|
|
|
static InputManager *GetInstance();
|
|
};
|
|
}
|