Guldoman
e5a3acd6bd
ime: fcitx: Retrieve cursor position and selection
...
Also, if `SDL_HINT_IME_SUPPORT_EXTENDED_TEXT` is enabled, make use of
`SDL_TEXTEDITING_EXT` by sending the full preedit string.
2022-06-09 15:18:50 -07:00
Guldoman
dd7bed9ebc
ime: ibus: Retrieve cursor position and selection
...
Also, if `SDL_HINT_IME_SUPPORT_EXTENDED_TEXT` is enabled, make use of
`SDL_TEXTEDITING_EXT` by sending the full preedit string.
2022-06-09 15:18:50 -07:00
chalonverse
4082821822
DirectX 12 Renderer ( #5761 )
...
* DirectX 12 Renderer (27 squashed commits)
* Add missing SDL_hidapi.h of merge of SDL.vcxproj.filters
* Fixed OpenWatcom build failure
* Dynapi fix
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
2022-06-06 17:42:30 -07:00
Sam Lantinga
fd2a2eea10
Fixed declaration-after-statement warning
2022-05-28 07:49:18 -07:00
Cameron Cawley
9dfa000bc0
Initial support for building for Windows with OpenWatcom
2022-05-19 20:11:10 +03:00
Cameron Cawley
622311c016
Add extra XInput structures and defines for older SDKs
2022-05-18 15:04:42 -07:00
Sam Lantinga
8cd908e0b9
Fixed building with Visual Studio 2013
...
Added SDL_vacopy.h since it needs to be included after Windows headers
2022-05-06 10:51:55 -07:00
Dimitriy Ryazantcev
c39df2fb0c
joystick: get HID top-level collection preparsed data directly from RawInput API.
2022-04-26 09:48:35 -07:00
Cameron Gutman
8982d9f403
windows: Fix RoInitialize() failure after a CoInitializeEx() call using apartment threading
...
This mirrors the same codepath in WIN_CoInitialize() which handles STA and MTA.
2022-04-21 08:47:22 -07:00
Cameron Gutman
923cb4463e
windows: Fix calling convention for RoInitialize/RoUninitialize
...
Fixes #5563
2022-04-20 21:02:40 -05:00
Weng Xuetian
138d96c8a6
Send key release event to input method. ( #5281 )
...
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
2022-04-05 22:30:25 -04:00
Weng Xuetian
ff5b67e5e0
IBus should use ev keycode instead of X keycode
...
See: 5a455b1ead/client/gtk2/ibusimcontext.c (L468)
2022-04-05 20:04:40 -04:00
Ozkan Sezer
312c899f4f
attempt to fix uwp build
2022-04-02 03:32:10 +03:00
Ozkan Sezer
575dadb11d
fix build against older SDKs after commit 8ebef12
.
2022-04-02 02:20:02 +03:00
Sam Lantinga
8ebef12d31
Use RoInitialize/RoUninitialize for Windows.Gaming.Input
...
Thanks @walbourn!
Fixes https://github.com/libsdl-org/SDL/issues/5270
2022-04-01 14:59:45 -07:00
Sam Lantinga
b22ce2b5a8
Workaround for bug in Microsoft WGI support
...
Fixes https://github.com/libsdl-org/SDL/issues/5270
2022-03-17 17:10:40 -07:00
Guus Waals
7495b98141
Make SDL_VIDEO_OPENGL_EGL optional on Android
2022-03-14 13:38:12 +01:00
Cacodemon345
d90bd261f3
wscons: Make USB keyboard input layout independent
2022-02-18 09:30:04 -08:00
Sylvain
fe2ed6cf6f
Fixed bug #5221 - Add SDL_AndroidSendMessage()
2022-02-01 11:30:43 +01:00
pionere
ebdd536676
use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError
2022-01-28 20:40:19 -05:00
Ozkan Sezer
d2456b6e4c
os2, geniconv: default functions pointers to Uni*() API,
...
In case they get accessed before SDL_Init() was called.
2022-01-21 11:50:40 +03:00
Sam Lantinga
120c76c84b
Updated copyright for 2022
2022-01-03 09:40:21 -08:00
Sylvain
a1e992b110
Fixed bug #5118 - [Android] PointerIcon leak in Cursor API
2021-12-21 22:07:17 +01:00
Ozkan Sezer
48d1ef8fad
another unsigned char cast in os2cp.c. code clean-up in os/2 geniconv.
2021-12-17 07:33:10 +03:00
Ozkan Sezer
dac6516057
os2iconv.c (_createUconvObj): cast to unsigned char, to be safe.
2021-12-17 02:50:40 +03:00
Ozkan Sezer
615f7b4453
more updates to os2 makefile for libiconv
2021-12-08 23:51:56 +03:00
Cameron Gutman
2d673e5b56
evdev: Add support for REL_WHEEL_HI_RES and REL_HWHEEL_HI_RES
...
If supported, these come alongside the regular REL_WHEEL and REL_HWHEEL
events so it's important that we only process one or the other.
2021-12-07 07:00:31 -08:00
Weng Xuetian
5056b29b0f
Fix the wrong int size for fcitx capability.
2021-12-03 04:31:24 -08:00
Ozkan Sezer
70c5e91d0f
os/2 optionally builds against libiconv.
2021-12-01 01:20:10 +03:00
Ozkan Sezer
b20484e803
minor os/2 reorganization for iconv
2021-12-01 01:20:02 +03:00
Sam Lantinga
6872cb12e6
null-terminate the message buffer if FormatMessage() fails
2021-11-28 21:10:46 -08:00
Sam Lantinga
e04a0221e3
Fixed crash running SDL test programs on UWP
2021-11-27 10:22:37 -08:00
Sylvain
dd6817b3b7
Fix warnings: static function, {} initializier, un-needed enum forward declaration
2021-11-23 10:47:34 +01:00
Sylvain
fae7034901
Fix warnings: static, include, un-initialized vairables
2021-11-23 10:33:12 +01:00
Sylvain
d31251b014
use SDL's functions version inplace of libc version
2021-11-22 08:38:46 -08:00
Sam Lantinga
be5b4d980d
Added nativeGetHintBoolean for Java code
2021-11-15 16:52:54 -08:00
Ozkan Sezer
e4aa608a5c
change (char*) casts to (const char*) in WIN_UTF8 macros
2021-11-14 02:30:34 +03:00
Sam Lantinga
c2dd50a9a0
Fixed whitespace
2021-11-12 08:28:02 -08:00
Sam Lantinga
dc9de1e2bd
Get the correct USB VID/PID information for /dev/input/js* devices
2021-11-11 07:03:30 -08:00
Mathieu Eyraud
3090812e1e
Convert last SDL_IOReady()'s 2nd parameter to flags
...
Conversion missed in https://github.com/libsdl-org/SDL/pull/4897
2021-11-11 06:17:26 -08:00
Cameron Gutman
a559864968
x11/wayland: Fix signal handling while blocking in WaitEventTimeout()
...
Add a new flag to avoid suppressing EINTR in SDL_IOReady(). Pass the
flag in WaitEventTimeout() to ensure that a SIGINT will wake up
SDL_WaitEvent() without another event coming in.
2021-10-30 21:23:45 -07:00
Cameron Gutman
c97c46877f
core: Convert SDL_IOReady()'s 2nd parameter to flags
2021-10-30 21:23:45 -07:00
Ozkan Sezer
c4bac66b74
os2, geniconv: replaced many uses of libc calls with SDL_ counterparts.
...
FIXME: figure out a way to handle errno checks properly.
2021-10-18 14:11:20 +03:00
Sylvain
8b1a2fe860
backout SDL_AndroidSetInputType()
2021-10-17 23:47:59 +02:00
Sylvain
ccb12457f9
Fixed bug #4843 - Can not get the ime candidatelist like chinese/japaness input method
2021-10-17 23:17:54 +02:00
Sam Lantinga
373216ae5b
Added support for touchpads in the Linux evdev code (thanks Francisco!)
2021-10-07 18:14:16 -07:00
Sam Lantinga
db68af8032
Reduce the likelyhood that the mouse will hover over the taskbar or toast notification while in relative mode, which causes a mouse leave event.
...
This will still happen occasionally as the mouse is whipped around, if there is a window overlapping the game window, but it should happen less often now. This could even happen with the original code that warped the mouse every frame, so this should be a good compromise where we don't warp the mouse continously and we still keep the mouse in the safe area of the game window.
Note that notifications can be any size, so the safe area may need to be adjusted or even dynamically defined via a hint.
2021-09-24 10:49:44 -07:00
Cameron Cawley
08ae790497
Replace calls to asprintf with SDL_asprintf
2021-09-22 11:53:46 -07:00
Sam Lantinga
345c161feb
Fixed some accidental uses of external C runtime functions
2021-09-22 09:06:45 -07:00
Sam Lantinga
bf97c5a22f
Make sure SDL file descriptors don't leak into child processes
2021-09-08 14:47:40 -07:00