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
David Gow
a1ffeda0ed
Add SDL_HINT_APP_NAME and DBUS inhibition hint
...
See SDL bug #4703 . This implements two new hints:
- SDL_APP_NAME
- SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME
The former is the successor to SDL_HINT_AUDIO_DEVICE_APP_NAME, and acts
as a generic "application name" used both by audio drivers and DBUS
screensaver inhibition. If SDL_AUDIO_DEVICE_APP_NAME is set, it will
still take priority over SDL_APP_NAME.
The second allows the "activity name" used by
org.freedesktop.ScreenSavver's Inhibit method, which are often shown in
the UI as the reason the screensaver (and/or suspend/other
power-managment features) are disabled.
2021-08-30 09:15:11 -04:00
Ryan C. Gordon
d483970262
dbus: Wrap init in a spinlock.
...
This prevents a race if two threads that need d-bus try to init it at the
same time. Note that SDL_Init will likely handle this from a single thread
at startup, but there are places outside of init where one might trigger
D-Bus init, like setting thread priority (a common first thing for a new
thread to do) resulting in SDL trying to use RTKit.
Fixes #4587 .
2021-08-04 13:30:12 -04:00
Ryan C. Gordon
350ca0f908
winrt: Don't register orientation hint callback in startup code.
...
SDL_AddHintCallback() uses SDL_malloc(), which means this would
run before main(), so the app wouldn't be able to supply its own
replacement SDL_malloc() implementation in time.
This code was moved to under SDL_Init. Since the hint callback
already makes efforts to not override the app manifest's
orientation settings, this is safe to move until after pre-main()
startup.
Fixes #4449 .
2021-08-03 05:07:39 -04:00
Ozkan Sezer
3da6d2cdde
WIN_SetErrorFromHRESULT: kill CR/LF that FormatMessage sticks at the end
...
Fixes: https://github.com/libsdl-org/SDL_mixer/issues/320
2021-07-08 20:33:50 +03:00
Sam Lantinga
40e5ce7fe5
This delay is no longer needed on Steam Link hardware
2021-06-04 13:23:54 -07:00
Cacodemon345
dbbc725f5e
Remove WSCONS mouse scaling
2021-05-19 21:09:19 -04:00
Cacodemon345
2aa14b3806
Add missing key to WSCONS-to-SDL conversion table
2021-05-19 21:09:19 -04:00