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 :[