1 #ifndef DEVICE_GENERAL_H
2 #define DEVICE_GENERAL_H
19 bool click(
const int x,
const int y)
override;
20 bool click(
const int x,
const int y,
const unsigned int intv)
override;
22 bool drag(
const int sx,
const int sy,
const int ex,
const int ey,
23 const int steps,
const int durationMs)
override;
25 bool touchDown(
const int x,
const int y)
override;
26 bool touchMove(
const int x,
const int y)
override;
27 bool touchUp(
const int x,
const int y)
override;
29 bool wheelUp(
int amount,
const int durationMs)
override;
30 bool wheelDown(
int amount,
const int durationMs)
override;
39 bool takeScreenshot(std::string path,
float scale,
int quality)
override;
43 bool pressKeyCode(std::string keycode,
unsigned int intv);
46 void startTimer(
void);
50 efl_util_inputgen_h mFakeTouchHandle;
51 efl_util_inputgen_h mFakeKeyboardHandle;
52 efl_util_inputgen_h mFakeWheelHandle;
53 static const unsigned int INTV_CLICK = 5;
54 static const unsigned int INTV_KEYPRESS = 10;
55 static const unsigned int INTV_MINIMUM_DRAG_MS = 25;
56 static const unsigned int INTV_MINIMUM_USLEEP = 1000;
57 static const unsigned int MINIMUM_DURATION_DRAG = 100;
58 static const unsigned int MSEC_PER_SEC = 1000;
60 struct timespec tStart;