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-06-15 00:26:26 +02:00
|
|
|
#include "View.h"
|
|
|
|
|
|
|
|
#include <chrono>
|
2020-03-08 02:22:20 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2020-06-15 00:26:26 +02:00
|
|
|
std::chrono::high_resolution_clock::time_point touchDownTime;
|
2020-03-19 06:22:59 +01:00
|
|
|
int touchx;
|
|
|
|
int touchy;
|
|
|
|
int tapCount;
|
2020-03-08 02:22:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|