In the above screenshot my mouse is at the top left of the game window but the coordinate I get back via SDL is 123,0. The other params on the page are...
MainWindow = my virtual resolution
CSSWindow = the result of emscripten_get_element_css_size in the html5.h callback for canvasResizedCallback.
CanvasWindow = the result of emscripten_get_canvas_element_size
the ones starting me... are the results from the html5.h mousemove callback.
The last two are from doing the same bit of code as the SDL_MouseMove messaage stuff.
Basically, is there anyway to get my mouse coord back so 0,0 is always the top left of the game window?
Thanks!
Scott
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/d7d9881f-a6cc-4ee5-99ee-6871a9c15fe7%40googlegroups.com.