Susko3
2ef005afe5
Fix WM_SYSKEYDOWN not being trapped by IME message handling
...
This would cause Alt + <something> not being trapped if handled by the system IME.
2025-11-19 13:39:46 -08:00
Susko3
cb6272ed2d
windows: Treat absolute mouse as pen events when SDL_HINT_PEN_MOUSE_EVENTS=0.
...
Some caveats:
- the fake pen will leave proximity only when relative mode is disabled
- unsure if detecting proximity is even possible from raw mouse input
Fixes #12324 .
2025-11-14 16:49:49 -05:00
Susko3
e2bbbdc515
Implement SDL_GetPenDeviceType() for Android
2025-10-13 18:43:16 -04:00
Susko3
cd21bbe796
Avoid checking for HAVE_POSIX_SPAWN on Android
...
This makes the CMake build closer to SDL_build_config_android.h
as both will now use SDL_PROCESS_DUMMY.
2025-08-28 04:09:50 -07:00
Susko3
923813b399
Disable SDL_DYNAMIC_API when using ReSharper
2025-06-29 12:37:56 -04:00
Susko3
73fc2b03a3
Copy pen handling code from SDLSurface to SDLControllerManager
2025-01-21 21:33:11 -08:00
Susko3
0a5d2f3da2
Handle pen eraser button as a second button
2025-01-04 05:27:06 -05:00
Susko3
e0e61775b8
Add missing SDL_WindowFlags to SDL_test_common.c
...
This fixes some flags not printing in testwm.c
2024-11-25 10:56:16 -08:00
Susko3
94d110edd5
Specify C source file in example VC projects
2024-10-29 14:40:32 -07:00
Susko3
415abf2ea2
Rename variables for readability
2024-10-29 14:40:32 -07:00
Susko3
152bcce85f
Add examples to SDL.sln ( #11255 )
2024-10-29 07:36:38 -07:00
Susko3
d0cf2c19d1
Allow defining custom SDL_SINT64_C and SDL_UINT64_C macros ( #11315 )
2024-10-23 17:03:13 -07:00
Susko3
0478a6ee3b
Move endian pixel format aliases into enum
...
Matches the same thing in `SDL_AudioFormat`.
2024-09-22 16:34:42 -07:00
Susko3
e3cf20e1cc
Remove createSDLMainRunnable() in favour of main() to fix multiple issues when providing custom main/runnable code ( #10434 )
...
This allows managed applications (eg. Java, C#) to override main() to their liking.
2024-08-03 06:34:38 -07:00
Susko3
9d03ff6c18
Decrement before as the code makes more sense
2024-05-20 11:08:19 -07:00
Susko3
9458dc07dc
Fix double-free on cleanup and general nonsense when deleting fingers
2024-05-20 11:08:19 -07:00
Susko3
e6345716e0
Fix typo
2024-05-15 14:32:11 -07:00
Susko3
968e8c9275
Prefix names with SDL_RENDERER_
2024-05-15 14:32:11 -07:00
Susko3
8d7f91f8e4
Add defined constants for renderer vsync values
2024-05-15 14:32:11 -07:00
Susko3
f229e940a4
Fix missing #include in SDL_blendmode.h
...
Regressed when SDL_BlendMode was changed from an enum to a typedef Uint32.
2024-05-15 10:16:24 -07:00
Susko3
895586c928
Use 1u literal for flags/masks calculation
...
Changes `1 <<` and `1<<` to use `1u`.
2024-05-09 10:29:48 -07:00
Susko3
56feecc17d
Fix property cleanup callback not being called on error ( #9663 )
...
The documentation for `SDL_SetPropertyWithCleanup` mentions that the cleanup function
is called upon failure. But this wasn't working in the code.
2024-05-06 14:50:28 -07:00
Susko3
5045680628
Override onTrimMemory() instead of onLowMemory()
...
https://developer.android.com/reference/android/content/ComponentCallbacks#onLowMemory()
> Preferably, you should implement ComponentCallbacks2#onTrimMemory from ComponentCallbacks2 [...].
> That API is available for API level 14 and higher, so you should only use this onLowMemory() method as a fallback for older versions.
Since the SDL3 min api level is 19, there's no need for `onLowMemory()` compat.
2024-04-30 08:54:19 -07:00
Susko3
5f763083fc
Use SDL_EventType and fix event name in comment
2024-04-01 11:04:02 -07:00
Susko3
c40e9cc634
Sort includes
2024-04-01 11:04:02 -07:00
Susko3
c96bc8b1a2
Add missing includes for SDL_MouseID
...
Missed in f8844d387c and d1eb4adb16 .
2024-03-31 16:11:23 -07:00
Susko3
d785a647a4
Fix 'SyntaxWarning: invalid escape sequence' when running gendynapi.py
2024-03-28 13:21:26 -07:00
Susko3
b90fed094f
Standardise header includes
...
Changes "SDL_*.h" and "SDL3/SDL_*.h" to <SDL3/SDL_*.h>
2024-03-19 13:41:53 -07:00
Susko3
01248a99c8
Add default: break; to switches on SDL_Event::type
...
This is just a nice-to-have, as `SDL_Event::type` in an `Uint32`, so there are no
compiler errors about not handling all `SDL_EventType` enum values.
2024-03-06 15:40:05 -08:00
Susko3
722f4104bf
Use enums as types in SDL_*Event structures
...
The main `SDL_Event` union is not using the enum as
valid user events types are not in the enum.
2024-03-06 15:40:05 -08:00
Susko3
641b911d38
Update some internal files to use SDL_WindowFlags
2024-03-06 15:08:12 -08:00
Susko3
ce44eff3d2
Use SDL_WindowFlags in public headers
2024-03-06 15:08:12 -08:00
Susko3
4f58d18373
Typedef SDL_WindowFlags
...
Window flags were previously an enum with the same name.
See ebd7f9adbd .
2024-03-06 15:08:12 -08:00
Susko3
424616e032
Use SDL_PixelFormatEnum as type
2024-03-06 15:02:13 -08:00
Susko3
f8cb3c742d
Change SDL_Keycode type to an enum
2024-03-06 12:17:53 -08:00
Susko3
f8844d387c
Use specific types in SDL_touch.h
...
Missed when picking 7ff34249c7 from https://github.com/libsdl-org/SDL/pull/9191 .
2024-03-06 10:35:20 -08:00
Susko3
e268cdbec6
Use specific types in public headers ( #9205 )
...
Uses specific typedef'd types instead of generic integral types where applicable.
2024-03-05 16:52:15 -08:00
Susko3
86d36a2dc2
Add missing include
2024-03-03 09:37:59 -08:00
Susko3
5d6d149862
Allow passing in extrainfo value to GetMouseMessageSource()
...
This saves a syscall in WM_INPUT handling
2023-12-26 13:42:19 -08:00
Susko3
e0df963ef0
Fix wrong bit count in comment
...
If we're counting bits from 0, then the MSB is bit 31!
2023-12-26 13:42:19 -08:00
Susko3
c2a55cd2c5
Add missing (void) in functions params
2023-12-26 13:42:19 -08:00
Susko3
a3c8f2f6cb
Consolidate mouse-touch event checking logic
...
Saves one `GetMessageExtraInfo()` syscall when handling WM_INPUT events.
Will provide consistent results across various event types.
2023-12-26 13:42:19 -08:00
Susko3
d747daf03d
Use correct touch check flag
...
Matches the one in `GetMouseMessageSource()`.
From my testing on Windows 11, the lower 8 bits in touch events cycle
trough the values 0x8c-0x95 in order.
2023-12-26 13:42:19 -08:00
Susko3
a961066d0b
Add basic touch/finger support to testpen.c
...
Reuses the pen code as much as possible.
Seems like the right place, see
https://github.com/libsdl-org/SDL/pull/8749#issuecomment-1869671334 .
2023-12-26 13:42:19 -08:00
Susko3
bbdd41f287
Fix windows touch using wrong axis for normalisation
...
Regressed with 9302d7732d
2023-12-26 09:12:17 -08:00
Susko3
a28ac29aa0
Add missing cursor types
...
The flowing assert would trip:
SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS)
2023-12-26 09:12:17 -08:00
Susko3
8f991d7576
Define TOUCHEVENTF_PEN if not defined
2022-11-23 10:09:08 -08:00
Susko3
42796c56a9
Differentiate between Windows Ink (pen) and regular touch input
2022-11-23 10:09:08 -08:00
Susko3
f25a78eede
Enable SDL_TEXTEDITING_EXT events in checkkeys test
2022-05-02 15:50:39 -07:00
Susko3
6150245d65
Add new verbosity level for logging of SDL_SysWMEvents
...
Now logged only if SDL_HINT_EVENT_LOGGING is set to "3" or above.
2022-05-02 15:33:13 -07:00