3 weeks, it went slowly :(
Hopefully now I can reuse most of the code for other emscripten projects :D
Hi !!
I recently updated to your newer version and wanted to ask 3 things. :)
1) Was there a reason you removed the global checking to stop a cursor being set over and over and constantly allocating a surface.
2)I will test this myself but thought I'd ask too, is it possible to just you sprite_get_texture, in the function window_set_cursor_sprite when ( os_browser != browser_not_a_browser ). That way I dont have to allocate a surface as an intermediate for window_set_cursor_surface_part. Like I said probably gonna atleast test myself :D
3) in window_set_cursor_surface_part, you have 2 lines
r = window_set_cursor_impl(hwnd, d, w, 0, 0, w, h, cx - l, cy - l);
r = window_set_cursor_impl(hwnd, b, sw, 0, 0, w, h, cx - l, cy - l);
both using cy - l, I was just curious if this was supposed to be cy - t
Anyway, TY for the tool again, I been using it in my project for a while tyty
I checked the source code and I fixed the focus issue with ( to wndproc of the window_frame_host )
case WM_SETFOCUS: {
HWND game = (HWND)GetWindowLongPtr( hWnd, GWLP_USERDATA );
if ( game != nullptr ) {
if ( IsWindow( game ) ) {
SetFocus( game );
}
}
return 0;
};
This just checks for focus on the window and passes it to the game window. Seems to work for me.
Doesn't fix the gamepad issue though :[