diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-19 10:39:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-19 10:39:17 -0700 |
commit | bd27e137bf3b96b468b43d26242cca3b21365bd7 (patch) | |
tree | 7638b772bc47a748eda2871a92fd9ba0478ce8aa /tests/sdl_mouse.c | |
parent | 4713444af08aefc600f68d02501d21cd96eb1b1a (diff) |
fix test_sdl_mouse
Diffstat (limited to 'tests/sdl_mouse.c')
-rw-r--r-- | tests/sdl_mouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sdl_mouse.c b/tests/sdl_mouse.c index 0c10198a..f0282ab1 100644 --- a/tests/sdl_mouse.c +++ b/tests/sdl_mouse.c @@ -43,7 +43,7 @@ void one() { } } -void main_2(); +void main_2(void* arg); int main() { SDL_Init(SDL_INIT_VIDEO); @@ -52,12 +52,12 @@ int main() { SDL_Rect rect = { 0, 0, 600, 450 }; SDL_FillRect(screen, &rect, 0x2244ffff); - emscripten_async_call(main_2, 3000); // avoid startup delays and intermittent errors + emscripten_async_call(main_2, NULL, 3000); // avoid startup delays and intermittent errors return 0; } -void main_2() { +void main_2(void* arg) { emscripten_run_script("window.simulateMouseEvent(10, 20, -1)"); // move from 0,0 to 10,20 emscripten_run_script("window.simulateMouseEvent(10, 20, 0)"); // click emscripten_run_script("window.simulateMouseEvent(10, 20, 0)"); // click some more, but this one should be ignored through PeepEvent |