@@ -92,12 +92,6 @@ typedef void (NTAPI *RtlGetVersion_t)(NT_OSVERSIONINFOW *);
9292
9393// #define HIGHDPI_DEBUG
9494
95- // Fake window to help with DirectInput events.
96- HWND SDL_HelperWindow = NULL ;
97- static const TCHAR * SDL_HelperWindowClassName = TEXT ("SDLHelperWindowInputCatcher" );
98- static const TCHAR * SDL_HelperWindowName = TEXT ("SDLHelperWindowInputMsgWindow" );
99- static ATOM SDL_HelperWindowClass = 0 ;
100-
10195/* For borderless Windows, still want the following flag:
10296 - WS_MINIMIZEBOX: window will respond to Windows minimize commands sent to all windows, such as windows key + m, shaking title bar, etc.
10397 Additionally, non-fullscreen windows can add:
@@ -1510,72 +1504,6 @@ void WIN_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window)
15101504 CleanupWindowData (_this , window );
15111505}
15121506
1513- /*
1514- * Creates a HelperWindow used for DirectInput.
1515- */
1516- bool SDL_HelperWindowCreate (void )
1517- {
1518- HINSTANCE hInstance = GetModuleHandle (NULL );
1519- WNDCLASS wce ;
1520-
1521- // Make sure window isn't created twice.
1522- if (SDL_HelperWindow != NULL ) {
1523- return true;
1524- }
1525-
1526- // Create the class.
1527- SDL_zero (wce );
1528- wce .lpfnWndProc = DefWindowProc ;
1529- wce .lpszClassName = SDL_HelperWindowClassName ;
1530- wce .hInstance = hInstance ;
1531-
1532- // Register the class.
1533- SDL_HelperWindowClass = RegisterClass (& wce );
1534- if (SDL_HelperWindowClass == 0 && GetLastError () != ERROR_CLASS_ALREADY_EXISTS ) {
1535- return WIN_SetError ("Unable to create Helper Window Class" );
1536- }
1537-
1538- // Create the window.
1539- SDL_HelperWindow = CreateWindowEx (0 , SDL_HelperWindowClassName ,
1540- SDL_HelperWindowName ,
1541- WS_OVERLAPPED , CW_USEDEFAULT ,
1542- CW_USEDEFAULT , CW_USEDEFAULT ,
1543- CW_USEDEFAULT , HWND_MESSAGE , NULL ,
1544- hInstance , NULL );
1545- if (!SDL_HelperWindow ) {
1546- UnregisterClass (SDL_HelperWindowClassName , hInstance );
1547- return WIN_SetError ("Unable to create Helper Window" );
1548- }
1549-
1550- return true;
1551- }
1552-
1553- /*
1554- * Destroys the HelperWindow previously created with SDL_HelperWindowCreate.
1555- */
1556- void SDL_HelperWindowDestroy (void )
1557- {
1558- HINSTANCE hInstance = GetModuleHandle (NULL );
1559-
1560- // Destroy the window.
1561- if (SDL_HelperWindow != NULL ) {
1562- if (DestroyWindow (SDL_HelperWindow ) == 0 ) {
1563- WIN_SetError ("Unable to destroy Helper Window" );
1564- return ;
1565- }
1566- SDL_HelperWindow = NULL ;
1567- }
1568-
1569- // Unregister the class.
1570- if (SDL_HelperWindowClass != 0 ) {
1571- if ((UnregisterClass (SDL_HelperWindowClassName , hInstance )) == 0 ) {
1572- WIN_SetError ("Unable to destroy Helper Window Class" );
1573- return ;
1574- }
1575- SDL_HelperWindowClass = 0 ;
1576- }
1577- }
1578-
15791507#if !defined(SDL_PLATFORM_XBOXONE ) && !defined(SDL_PLATFORM_XBOXSERIES )
15801508void WIN_OnWindowEnter (SDL_VideoDevice * _this , SDL_Window * window )
15811509{
0 commit comments