18 std::unique_ptr<Impl> pimpl;
21 #ifdef OPTIBITS_IPHONE
22 Input(
void* view,
float upate_intrv);
23 void feedTouchEvent();
25 explicit Input(
void* window);
26 bool feedSdlEvent(
void* event);
31 static std::string idToChar(Key key);
32 static Key charToId(std::string ch);
33 static std::string keyName(Key key);
35 static std::string gamepadName(
int idx);
37 static bool down(Key key);
39 static double axis(Key key);
41 double mouseX()
const;
42 double mouseY()
const;
44 void setMousePosition(
double x,
double y);
49 std::function<void (Key)> onButtonDown, onButtonUp;