Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SDL_Event event;
- while (SDL_PollEvent(&event)) {
- ...
- }
- static int32_t engine_handle_input(struct android_app* app, AInputEvent* event) {
- struct engine* engine = (struct engine*)app->userData;
- if (AInputEvent_getType(event) == AINPUT_EVENT_TYPE_MOTION) {
- ...
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment