mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-20 19:12:11 +00:00
Fix input on Windows with SDL2 (fix #100)
Seems like the ::SetFocus() in main() screwed it up.
This commit is contained in:
parent
51f3acd21a
commit
0327a42ad9
1 changed files with 2 additions and 2 deletions
|
@ -673,7 +673,7 @@ int main(int argc, char *argv[]) {
|
|||
SetThreadAffinityMask( GetCurrentThread(), 1 );
|
||||
#endif
|
||||
|
||||
::SetCursor( hcurSave );
|
||||
// ::SetCursor( hcurSave ); // DG: I think SDL handles the cursor fine..
|
||||
|
||||
// Launch the script debugger
|
||||
if ( strstr( GetCommandLine(), "+debugger" ) ) {
|
||||
|
@ -681,7 +681,7 @@ int main(int argc, char *argv[]) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
::SetFocus( win32.hWnd );
|
||||
// ::SetFocus( win32.hWnd ); // DG: let SDL handle focus, otherwise input is fucked up! (#100)
|
||||
|
||||
// main game loop
|
||||
while( 1 ) {
|
||||
|
|
Loading…
Reference in a new issue