SDL2 for Windows 2000
Opened this issue · 3 comments
Released by 2000gamer https://www.tapatalk.com/groups/win2kgaming/sdl-2-for-windows-2000-t1073.htm
Haven't looked at the source for years but the changes were minimal and I believe just dealt with rawinput?, need to do a windiff between this and regular SDL 2.0.5 and then see if changes will work on latest version of SDL
Okay, went through and compared the source between 2.0.5 and 2.24.1. Attached are the changes. Nothing tested or compiled yet. As thought the changes were for rawinput support. I have not checked for any other breaking changes from 2.0.5 to 2.24.1
SDL2-2.24.1_DIFFv1.zip
Created a Win2000 branch with the changes. Still haven't tested or compiled.
Errors in action, decrypt below error and look into:
https://www.geeksforgeeks.org/void-pointer-c-cpp/
D:/a/SDL/SDL/src/WIN2000.c: In function 'SetRawInputMouseHeader':
D:/a/SDL/SDL/src/WIN2000.c:62:24: error: assignment to 'HANDLE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
62 | ri->header.hDevice = MOUSE_DEVICE_HANDLE;
| ^
D:/a/SDL/SDL/src/WIN2000.c: In function 'RegisterDirectInputMouse':
D:/a/SDL/SDL/src/WIN2000.c:179:17: error: unused variable 'hr' [-Werror=unused-variable]
179 | HRESULT hr;
| ^~
D:/a/SDL/SDL/src/WIN2000.c: In function 'myLowLevelKeyboardProc':
D:/a/SDL/SDL/src/WIN2000.c:363:32: error: assignment to 'HANDLE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
363 | ri->header.hDevice = KBD_DEVICE_HANDLE;
| ^
D:/a/SDL/SDL/src/WIN2000.c: In function 'XP_GetRawInputDeviceList':
D:/a/SDL/SDL/src/WIN2000.c:689:20: error: assignment to 'HANDLE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
689 | d->hDevice = MOUSE_DEVICE_HANDLE;
| ^
D:/a/SDL/SDL/src/WIN2000.c:693:20: error: assignment to 'HANDLE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
693 | d->hDevice = KBD_DEVICE_HANDLE;
| ^
cc1.exe: all warnings being treated as errors