2020-03-08 02:22:20 +01:00
|
|
|
#ifndef INPUT_H
|
2020-03-11 00:56:59 +01:00
|
|
|
#define INPUT_H
|
2020-03-08 02:22:20 +01:00
|
|
|
|
2020-03-19 06:22:59 +01:00
|
|
|
#include "AppData.h"
|
2020-03-08 02:22:20 +01:00
|
|
|
#include "View.h"
|
|
|
|
|
|
|
|
class Input {
|
|
|
|
public:
|
|
|
|
void getInput();
|
|
|
|
|
|
|
|
//should input know about view?
|
2020-03-19 06:22:59 +01:00
|
|
|
Input(AppData *appData, View *view);
|
2020-03-08 02:22:20 +01:00
|
|
|
|
|
|
|
View *view;
|
2020-03-19 06:22:59 +01:00
|
|
|
AppData *appData;
|
|
|
|
|
|
|
|
uint64_t touchDownTime;
|
|
|
|
int touchx;
|
|
|
|
int touchy;
|
|
|
|
int tapCount;
|
2020-03-08 02:22:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|