mirror of
https://github.com/encounter/SDL.git
synced 2025-12-14 15:46:14 +00:00
WinRT: workaround a possible Windows bug, whereby hiding cursors, disables mouse-moved events
This workaround, unfortunately, requires that apps directly link to a set of Win32-style cursor resource files (that contain a transparent cursor image). Copies of suitable resource files are in src/core/winrt/, and should be included directly in an app's MSVC project. A rough explanation of this workaround/hack, and why it's needed (and seemingly can't be done through programmatic means), is in this change's code.
This commit is contained in:
BIN
src/main/winrt/SDL2-WinRTResource_BlankCursor.cur
Normal file
BIN
src/main/winrt/SDL2-WinRTResource_BlankCursor.cur
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 326 B |
3
src/main/winrt/SDL2-WinRTResources.rc
Normal file
3
src/main/winrt/SDL2-WinRTResources.rc
Normal file
@@ -0,0 +1,3 @@
|
||||
#include "winres.h"
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
5000 CURSOR "SDL2-WinRTResource_BlankCursor.cur"
|
||||
Reference in New Issue
Block a user