KEYMAPPER: Rework HardwareInputSet not to allocate all possible inputs

This commit is contained in:
Bastien Bouclet 2020-01-26 12:18:52 +01:00
parent 0995f40677
commit df7ce0c55f
12 changed files with 324 additions and 186 deletions

View file

@ -25,6 +25,7 @@
#include "common/scummsys.h"
#include "backends/keymapper/hardware-input.h"
#include "common/events.h"
namespace Common {
@ -48,7 +49,7 @@ public:
void stopWatching();
bool isWatching() const;
const HardwareInput *checkForCapturedInput();
HardwareInput checkForCapturedInput();
private:
bool notifyEvent(const Event &event) override;
@ -57,7 +58,7 @@ private:
Keymapper *_keymapper;
bool _watching;
const HardwareInput *_hwInput;
HardwareInput _hwInput;
};
} // End of namespace Common