1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-19 19:34:57 +00:00

more oops

This commit is contained in:
fgenesis 2020-08-11 13:30:10 +02:00
parent 262c8d3870
commit f31a8c8e89
3 changed files with 4 additions and 5 deletions

View file

@ -46,12 +46,12 @@ ActionMapper::ActionMapper()
cleared = false;
inputEnabled = true;
inUpdate = false;
InputMapper::RegisterActionMapper(this);
IInputMapper::RegisterActionMapper(this);
}
ActionMapper::~ActionMapper()
{
InputMapper::UnregisterActionMapper(this);
IInputMapper::UnregisterActionMapper(this);
clearCreatedEvents();
}

View file

@ -57,7 +57,7 @@ IInputMapper::IInputMapper()
IInputMapper::~IInputMapper()
{
InputSystem::addMapper(this);
InputSystem::removeMapper(this);
}
// ------------------
@ -69,7 +69,6 @@ InputMapper::InputMapper(int playerID)
InputMapper::~InputMapper()
{
InputSystem::removeMapper(this);
}
static float rescale(float t, float lower, float upper, float rangeMin, float rangeMax)

View file

@ -48,7 +48,7 @@ class InputMapper : public IInputMapper
{
public:
InputMapper(int playerID);
~InputMapper();
virtual ~InputMapper();
bool acceptMouse;
int acceptMouseID; // -1: accept all, otherwise: that id