input manager provides ground of truth on device input choise
This commit is contained in:
@@ -16,11 +16,12 @@
|
||||
*/
|
||||
class DemoGame : public Game {
|
||||
public:
|
||||
DemoGame(uint16_t width, uint16_t height, LowLevelRenderer* renderer, LowLevelGUI* gui);
|
||||
DemoGame(uint16_t width, uint16_t height, LowLevelRenderer* renderer, LowLevelGUI* gui, InputManager* input_manager);
|
||||
|
||||
void init() override;
|
||||
bool update(const InputEvent& event) override;
|
||||
void draw() override;
|
||||
bool wants_to_exit() const override { return exit_requested; }
|
||||
|
||||
private:
|
||||
int tap_count;
|
||||
|
||||
Reference in New Issue
Block a user