Treat touches outside the viewport as right-clicks

The old method to simulate right click (two-finger touch) still works.
This commit is contained in:
kichikuou
2023-03-03 10:50:54 +09:00
parent 2c2ea6d28b
commit 36cee9aff8
2 changed files with 31 additions and 10 deletions
+1
View File
@@ -33,6 +33,7 @@ int main(int argc, char *argv[])
}
SDL_Init(SDL_INIT_VIDEO);
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
#ifdef __EMSCRIPTEN__
// Stop SDL from calling emscripten_sleep() in functions that are called
// indirectly, which does not work with ASYNCIFY_IGNORE_INDIRECT=1. For