Guest User

Untitled

a guest
Jan 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. SDL_Event event;
  2. while (SDL_PollEvent(&event)) {
  3. ...
  4. }
  5.  
  6. static int32_t engine_handle_input(struct android_app* app, AInputEvent* event) {
  7. struct engine* engine = (struct engine*)app->userData;
  8. if (AInputEvent_getType(event) == AINPUT_EVENT_TYPE_MOTION) {
  9. ...
  10. }
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment