Sam Lantinga
3167ba342d
Fixed freeing the Windows blank cursor
2022-03-17 17:58:35 -07:00
Sam Lantinga
0387bf821a
Fixed memory leak in WIN_CreateBlankCursor()
2022-03-17 17:55:28 -07:00
Sam Lantinga
1085c317a5
Use the requested cursor size instead of the default cursor size
...
CopyImage() will scale based on the system accessibility settings automatically.
Fixes https://github.com/libsdl-org/SDL/issues/5198
2022-01-07 16:45:18 -08:00
Sam Lantinga
120c76c84b
Updated copyright for 2022
2022-01-03 09:40:21 -08:00
Yufei Huang
881f747d5c
Always destroy icon
2021-11-08 22:20:50 -08:00
Yufei Huang
7fea557b99
SDL_windowsmouse.c: Remove LR_COPYDELETEORG flag
2021-11-08 22:20:50 -08:00
Yufei Huang
301819cd1d
SDL_windowsmouse.c: Fix WIN_CreateCursor does not scale with system cursor size preference
2021-11-08 06:59:36 -08:00
Sam Lantinga
5e89b3c89e
Don't need to use raw input to track the mouse during mouse capture (thanks Brick!)
2021-10-14 11:46:07 -07:00
Sam Lantinga
40ed9f75c9
Workaround for Windows occasionally ignoring SetCursorPos() calls
...
Also, since we're flushing mouse motion before and including the warp, we don't need the isWin10FCUorNewer hack to simulate mouse warp motion.
Fixes https://github.com/libsdl-org/SDL/issues/4339 and https://github.com/libsdl-org/SDL/issues/4165
2021-10-08 10:05:27 -07:00
Sam Lantinga
16aeb8d0f5
Guarantee that we don't dispatch any mouse motion from before or including the last mouse warp
2021-10-07 15:04:06 -07:00
Sam Lantinga
649466f491
Flush any pending mouse motion when warping the mouse cursor
...
Fixes https://github.com/libsdl-org/SDL/issues/4165
2021-10-07 13:28:44 -07:00
Sam Lantinga
8fee82d1fd
Improve relative motion handling over RDP
...
CR and research: @danielj
2021-09-21 18:15:09 -07:00
Brick
7fe6dbafa3
Reset rawInputEnableCount when RawInput is not supported
2021-07-11 14:51:31 -07:00
Sam Lantinga
9130f7c377
Updated copyright for 2021
2021-01-02 10:25:38 -08:00
Sam Lantinga
cb36189692
Fixed bug 5235 - All internal sources should include SDL_assert.h
...
Ryan C. Gordon
We should really stick this in SDL_internal.h or something so it's always available.
2020-12-09 07:16:22 -08:00
Cameron Gutman
72379ba510
windows: Fix handling of swapped mouse buttons
...
GetAsyncKeyState() and GetRawInputData() report the state of the physical
buttons without applying the user's primary/secondary mouse button swap
preference. Swap the buttons returned from these functions, so we expose a
consistent view of the buttons to SDL callers. This new behavior also matches
the behavior of macOS and X11 backends.
See the Remarks section of the GetAsyncKeyState() function on MSDN.
2020-08-25 21:22:00 -07:00
Sam Lantinga
a8780c6a28
Updated copyright date for 2020
2020-01-16 20:49:25 -08:00
Sam Lantinga
5e13087b0f
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Ryan C. Gordon
4659e73892
merge fallout: Patched to compile, fixed some compiler warnings, etc.
2018-11-01 12:31:45 -04:00
Ryan C. Gordon
62494a2e27
Merge SDL-ryan-batching-renderer branch to default.
2018-10-31 15:03:41 -04:00
Ryan C. Gordon
b262b0ebc9
Small stack allocations fall back to malloc if they're unexpectedly large.
2018-10-22 20:50:32 -04:00
Sam Lantinga
6b3e893105
Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity.
...
Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces
2018-09-14 19:26:26 -07:00
Sam Lantinga
e3cc5b2c6b
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Philipp Wiesemann
bf8ccf08bb
Removed redundant mouse clean up on quit for some platforms.
...
SDL_MouseQuit() already frees cursors and sets fields to NULL.
2017-05-19 23:30:59 +02:00
Sam Lantinga
45b774e3f7
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Sam Lantinga
42065e785d
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Ryan C. Gordon
e346f14277
SDL_WarpMouseGlobal() should return non-void.
...
There are platforms it isn't implemented on (and currently can't be
implemented on!), and there's currently no way for an app to know this.
This shouldn't break ABI on apps that moved to a revision between 2.0.3 and
2.0.4.
2015-07-17 21:03:58 -04:00
Philipp Wiesemann
0e45984fa0
Fixed crash if initialization of EGL failed but was tried again later.
...
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly
uninitialized data structure if loading the library first failed. A later try to
use EGL then skipped initialization and assumed it was previously successful
because the data structure now already existed. This led to at least one crash
in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was
dereferenced to make a call to eglBindAPI().
2015-06-21 17:33:46 +02:00