KEYMAPPER: Rework HardwareInputSet not to allocate all possible inputs
This commit is contained in:
parent
0995f40677
commit
df7ce0c55f
12 changed files with 324 additions and 186 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue