@@ -96,12 +96,6 @@ typedef void (NTAPI *RtlGetVersion_t)(NT_OSVERSIONINFOW *);
96
96
97
97
// #define HIGHDPI_DEBUG
98
98
99
- // Fake window to help with DirectInput events.
100
- HWND SDL_HelperWindow = NULL ;
101
- static const TCHAR * SDL_HelperWindowClassName = TEXT ("SDLHelperWindowInputCatcher" );
102
- static const TCHAR * SDL_HelperWindowName = TEXT ("SDLHelperWindowInputMsgWindow" );
103
- static ATOM SDL_HelperWindowClass = 0 ;
104
-
105
99
/* For borderless Windows, still want the following flag:
106
100
- WS_MINIMIZEBOX: window will respond to Windows minimize commands sent to all windows, such as windows key + m, shaking title bar, etc.
107
101
Additionally, non-fullscreen windows can add:
@@ -1538,72 +1532,6 @@ void WIN_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window)
1538
1532
CleanupWindowData (_this , window );
1539
1533
}
1540
1534
1541
- /*
1542
- * Creates a HelperWindow used for DirectInput.
1543
- */
1544
- bool SDL_HelperWindowCreate (void )
1545
- {
1546
- HINSTANCE hInstance = GetModuleHandle (NULL );
1547
- WNDCLASS wce ;
1548
-
1549
- // Make sure window isn't created twice.
1550
- if (SDL_HelperWindow != NULL ) {
1551
- return true;
1552
- }
1553
-
1554
- // Create the class.
1555
- SDL_zero (wce );
1556
- wce .lpfnWndProc = DefWindowProc ;
1557
- wce .lpszClassName = SDL_HelperWindowClassName ;
1558
- wce .hInstance = hInstance ;
1559
-
1560
- // Register the class.
1561
- SDL_HelperWindowClass = RegisterClass (& wce );
1562
- if (SDL_HelperWindowClass == 0 && GetLastError () != ERROR_CLASS_ALREADY_EXISTS ) {
1563
- return WIN_SetError ("Unable to create Helper Window Class" );
1564
- }
1565
-
1566
- // Create the window.
1567
- SDL_HelperWindow = CreateWindowEx (0 , SDL_HelperWindowClassName ,
1568
- SDL_HelperWindowName ,
1569
- WS_OVERLAPPED , CW_USEDEFAULT ,
1570
- CW_USEDEFAULT , CW_USEDEFAULT ,
1571
- CW_USEDEFAULT , HWND_MESSAGE , NULL ,
1572
- hInstance , NULL );
1573
- if (!SDL_HelperWindow ) {
1574
- UnregisterClass (SDL_HelperWindowClassName , hInstance );
1575
- return WIN_SetError ("Unable to create Helper Window" );
1576
- }
1577
-
1578
- return true;
1579
- }
1580
-
1581
- /*
1582
- * Destroys the HelperWindow previously created with SDL_HelperWindowCreate.
1583
- */
1584
- void SDL_HelperWindowDestroy (void )
1585
- {
1586
- HINSTANCE hInstance = GetModuleHandle (NULL );
1587
-
1588
- // Destroy the window.
1589
- if (SDL_HelperWindow != NULL ) {
1590
- if (DestroyWindow (SDL_HelperWindow ) == 0 ) {
1591
- WIN_SetError ("Unable to destroy Helper Window" );
1592
- return ;
1593
- }
1594
- SDL_HelperWindow = NULL ;
1595
- }
1596
-
1597
- // Unregister the class.
1598
- if (SDL_HelperWindowClass != 0 ) {
1599
- if ((UnregisterClass (SDL_HelperWindowClassName , hInstance )) == 0 ) {
1600
- WIN_SetError ("Unable to destroy Helper Window Class" );
1601
- return ;
1602
- }
1603
- SDL_HelperWindowClass = 0 ;
1604
- }
1605
- }
1606
-
1607
1535
#if !defined(SDL_PLATFORM_XBOXONE ) && !defined(SDL_PLATFORM_XBOXSERIES )
1608
1536
void WIN_OnWindowEnter (SDL_VideoDevice * _this , SDL_Window * window )
1609
1537
{
0 commit comments