|
6784d84c
|
2022-10-10T01:31:14
|
|
N3DS: Fix `-Wformat` warnings in tests.
All warnings were about invalid specifiers. Since U/Sint32 is a long,
using `%d` emits a -Wformat warning.
|
|
43a2b0b1
|
2022-10-10T00:00:52
|
|
N3DS: Use macro to correct axis.
Using `(value * SDL max) / 3DS max` allows for marginally better
accuracy compared to `value * (SDL max / 3DS max)`.
|
|
cb1972b3
|
2022-09-20T23:07:04
|
|
N3DS: ZL and ZR should be considered as triggers.
Previously they were considered as clicking stick.
|
|
efc93e68
|
2022-09-18T15:17:08
|
|
N3DS: Don't set `num_display` by hand.
Doing so creates 2 empty displays at the beginning of the list.
|
|
2b2693ae
|
2022-09-18T08:49:56
|
|
N3DS: Use asprintf instead of snprintf.
|
|
65527537
|
2021-03-30T04:32:39
|
|
N3DS port (squashed)
A dedicated renderer using Citro3D would likely allow for better
much better graphical performances.
|
|
c7c0e81c
|
2022-09-18T14:01:36
|
|
N3DS: Update README.
|
|
86a8714f
|
2022-09-20T23:04:20
|
|
N3DS: Refactor joystick module to avoid globals.
|
|
83ec6062
|
2022-09-18T13:46:09
|
|
N3DS: Move gfxInit and hidInit from main to video.
|
|
266014fa
|
2022-09-18T13:38:26
|
|
N3DS: Use SDL_Touch instead of the Joystick touch.
|
|
49c25b1d
|
2022-10-09T23:49:00
|
|
N3DS: Fix PrivateSensorUpdate call.
A new timestamp parameter was added in 2c51874.
|
|
392f3882
|
2022-09-20T22:45:24
|
|
N3DS: Use SDL_Sensor instead of Joystick sensors.
|
|
f9785702
|
2022-09-18T13:22:07
|
|
N3DS: Deduce screen from window's display.
This removes the need for a dedicated window creation flag.
|
|
46a13ad9
|
2022-09-18T12:35:32
|
|
N3DS: NEON is likely not supported.
|
|
27557b62
|
2022-09-20T19:53:45
|
|
N3DS: Prefix timer sources with `N3DS_`.
|
|
af2bc2ed
|
2022-09-18T10:52:35
|
|
N3DS: Use osSetSpeedupEnable instead of PTMSYSM.
|
|
03bbbcd8
|
2022-09-18T09:06:36
|
|
N3DS: Use CreateJoystickGUIDForName.
|
|
61b5360e
|
2022-10-10T08:27:42
|
|
Only check to see if the ICC profile changes when the display changes or we gain focus
Fixes https://github.com/libsdl-org/SDL/issues/6366
|
|
6ffc45b0
|
2022-10-09T17:22:31
|
|
Removed "undefined" argument for Apple platforms.
This is incompatible with enabling bitcode, such as with iOS builds. The
default value for "undefined" is "error" so this option should be
redundant.
|
|
ec1137df
|
2022-10-09T15:19:47
|
|
cmake: Apply CETCOMPAT fix from ef988fe1 to tests
|
|
f99fc326
|
2022-10-09T11:42:39
|
|
d3d12: fixed window resize handling
Fixes https://github.com/libsdl-org/SDL/issues/6355
|
|
490c20f9
|
2022-10-09T09:57:55
|
|
d3d12: reset the vertex buffer size when it is released
|
|
efdb390c
|
2022-10-09T09:11:33
|
|
Disable the HIDAPI Wii driver by default as it doesn't work with the dolphinbar
|
|
6391ad97
|
2022-10-09T11:11:55
|
|
wayland: Factor out common libdecor frame commit code
The pattern of:
libdecor_state_new()
libdecor_frame_commit()
libdecor_state_free()
was used in several places. Factor it out into a common function.
|
|
b0a9396b
|
2022-10-09T11:06:20
|
|
wayland: Remove XDG surface geometry calls
These were needed to fix some buggy behavior regarding committing old buffer sizes when entering fullscreen that has since been corrected. Remove them.
|
|
b91ddbc3
|
2022-10-09T06:15:18
|
|
wayland: null-terminate drop data
|
|
9df1af35
|
2022-10-09T15:44:07
|
|
Sync SDL wiki -> header
|
|
d0220395
|
2022-10-09T12:01:02
|
|
testhaptic: fix watcom "&array may not produce intended result" warning
|
|
4298e798
|
2022-10-06T02:55:30
|
|
SDL_offscreenframebuffer.c: fix format '%d' expecting int instead of Uint32
Emitted by Nintendo 3DS's gcc (fix is same as used by ngage)
|
|
b8a4b8d1
|
2022-10-06T02:51:50
|
|
testautomation_mouse: fix format '%i' expecting 'int' instead of 'Uint32'
Emitted by Nintendo 3DS's gcc
|
|
b51a88a9
|
2022-10-06T02:23:57
|
|
SDL_malloc.c: fix variable 'used' set but not used
Emitted by clang-cl
|
|
5c150ddc
|
2022-10-06T02:21:49
|
|
SDL_mslibc.c: fix unknown pragma ignored [-Wunknown-pragmas]
Emitted by clang-cl
|
|
37beabd1
|
2022-10-06T02:16:07
|
|
SDL_mslib.c: clang-cl does not support `/GL-`
|
|
85fd40fa
|
2022-10-06T02:04:24
|
|
Fix -Wunused-const-variable warning when using clang-cl
|
|
7ae5d8d4
|
2022-10-06T01:15:49
|
|
testmessage: fix conversion from `intptr_t` to `Uint32`
Emitted by MSVC
|
|
02b200ef
|
2022-10-06T01:14:28
|
|
testoffscreen: fix '<': signed/unsigned mismatch
Emitted by MSVC
|
|
7a7980fa
|
2022-10-06T01:12:42
|
|
testnative: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
|
|
87706895
|
2022-10-06T01:12:18
|
|
testmouse: add explicit int-cast to avoid warning about converting `float` to `int`
Emitted by MSVC
|
|
3c251ec4
|
2022-10-06T01:10:22
|
|
testintersections: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
|
|
b771d9be
|
2022-10-06T01:09:32
|
|
tests: avoid MSVC preaching about unsafe functions
|
|
ebae142a
|
2022-10-06T01:05:59
|
|
testhaptic: fix conversion from `size_t` to `int`
Emitted by MSVC
|
|
18c776e1
|
2022-10-06T01:02:17
|
|
testspriteminimal: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
|
|
f3389f13
|
2022-10-06T01:00:58
|
|
testgeometry: fix conversion from 'double' to 'float', possible loss of data
emitted by MSVC
|
|
2105c7f6
|
2022-10-06T00:58:26
|
|
SDL_thread.c: fix unused function SDL_FreeErrBuf when building without thread support (emscripten)
|
|
07225d2e
|
2022-10-06T00:55:37
|
|
cmake: fix check for -marm
This fixes the following warning:
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
|
|
45da1339
|
2022-10-06T00:39:47
|
|
cmake: don't error on apple when using deprecated declarations
|
|
274ec025
|
2022-10-06T00:31:00
|
|
testautomation: avoid format related warnings by using a few pragma's
ci: enable -Werror to a few platforms
|
|
d04fa0ef
|
2022-10-06T00:30:11
|
|
controllermap: use enum to avoid '-Wmaybe-uninitialized'
Emitted by MinGW:
In function 'WatchJoystick',
inlined from 'SDL_main' at D:/a/SDL/SDL/test/controllermap.c:802:9:
D:/a/SDL/SDL/test/controllermap.c:437:9: warning: 'marker' may be used uninitialized [-Wmaybe-uninitialized]
437 | SDL_SetTextureAlphaMod(marker, alpha);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/a/SDL/SDL/test/controllermap.c: In function 'SDL_main':
D:/a/SDL/SDL/test/controllermap.c:355:71: note: 'marker' was declared here
355 | SDL_Texture *background_front, *background_back, *button, *axis, *marker;
|
|
a905db9d
|
2022-10-05T23:59:01
|
|
testcustomcursor: fix Wswitch warning by casting the arg to an int
|
|
bb527678
|
2022-10-05T23:56:27
|
|
testgamecontroller: fix -Wshadow warning by renaming global axis+button textures
|
|
57c88655
|
2022-10-05T23:55:59
|
|
automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("")
|
|
be5f55c4
|
2022-10-07T00:17:25
|
|
watcom: add ENABLE_WERROR option to makefiles
|
|
335c6724
|
2022-10-06T19:17:18
|
|
autotools: add --enable-werror option
|
|
77822ed1
|
2022-10-05T15:14:08
|
|
cmake: add SDL_WERROR to conditionally enable/disable -Werror
|
|
151c2341
|
2022-10-06T05:27:37
|
|
ci: Add SDL_WERROR to a few configurations
|
|
1064fdee
|
2022-10-06T05:04:51
|
|
cmake: append to COMPILE_FLAGS property
|
|
68e20501
|
2022-10-06T23:41:13
|
|
autotools: by default, disable x11 on MacOS/iOS
|
|
eb8eb621
|
2022-10-06T22:49:17
|
|
SDL_x11modes: fix -Wunused-variable
|
|
01498d3a
|
2022-10-06T03:19:28
|
|
SDL_render_psp.c: fix -Wshadow
Emitted by PSP's gcc
|
|
b18c361b
|
2022-10-08T13:18:00
|
|
Updated variable name for mouse coordinates in mouse wheel events
|
|
4f318c90
|
2022-10-08T12:01:42
|
|
Add cursor position to mouse wheel event (thanks @meyraud705!)
Fixes https://github.com/libsdl-org/SDL/pull/6351
|
|
5490505a
|
2022-10-08T09:41:10
|
|
Added a note to update the website after a stable release
|
|
17b43b0f
|
2022-10-08T09:32:09
|
|
Don't try to create a semaphore for the mutex implementation if threads are disabled
Fixes https://github.com/libsdl-org/SDL/issues/6344
|
|
33050fea
|
2022-10-07T11:29:49
|
|
Only open HID devices that might have a HIDAPI driver available
This prevents an OS prompt for every connected device when running on Android
|
|
31991ab8
|
2022-10-07T15:45:28
|
|
Fix \sa to a valid function in SDL_metal.h.
|
|
484d5fd6
|
2022-10-05T13:19:38
|
|
audio open: ensure 2 devices don't get the same id
|
|
5ec1cef6
|
2022-10-06T22:43:33
|
|
Further fixes for the sndio CMake detection
|
|
e714d4d7
|
2022-10-07T05:24:20
|
|
regenerated configure script.
|
|
f4882318
|
2022-09-29T20:31:20
|
|
Use the pkg-config file when checking for sndio.
|
|
fc720321
|
2022-10-06T18:23:07
|
|
Fix rare deadlock when opening a HID controller on Android
Fixes https://github.com/libsdl-org/SDL/issues/6347
|
|
689409fd
|
2022-10-06T17:34:24
|
|
Fixed the start button on the Nimbus+ controller on tvOS
Also updated mappings for Nintendo Switch controllers on tvOS, to reflect the lack of guide/menu button availability
|
|
b4aba101
|
2022-10-06T12:10:46
|
|
Reverted game controller buttons from interacting with message box dialogs
These would only work for non-HIDAPI controllers, and other controller input would leak past the dialog, both of which would be confusing.
|
|
893c87b2
|
2022-10-06T12:10:45
|
|
Fixed game controller buttons being unresponsive when the on-screen keyboard is up
Also mapped controller A and B buttons to interact with messagebox dialogs
|
|
914a65e0
|
2022-10-06T12:39:36
|
|
wayland: Don't unset min/max values when entering fullscreen via a compositor event
If the compositor is entering fullscreen and hasn't removed any constraints itself, it's already too late at this point. Remove the unnecessary call.
Restoring the limits when exiting fullscreen is still required, though, as they may have been removed when entering fullscreen via an SDL request.
|
|
69cf5fb0
|
2022-10-04T13:09:35
|
|
wayland: Remove surface type helpers
These were remnants of a time before the surface type was explicitly stored, so they can be removed per the TODO note.
|
|
c2b0c41c
|
2022-10-04T12:59:26
|
|
wayland: Set/unset the opaque regions on surfaces when transparency is toggled
Caches the SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY hint at init time and registers a callback, which is fired when the hint is changed during runtime and toggles the opaque region for existing surfaces.
|
|
ea595800
|
2022-10-03T18:31:15
|
|
wayland: Set the damage buffer size when supported
The preferred method for setting the damage region on compositor protocol versions 4 and above is to use wl_surface.damage_buffer. Use this when available and only fall back to wl_surface.damage on older versions.
Bumps the highest supported version of wl_compositor to version 4.
|
|
a8cb7bbe
|
2022-10-01T11:31:26
|
|
wayland: Add dedupe logic to window geometry configuration
Adds deduplication logic to ConfigureWindowGeometry() to avoid setting redundant backbuffer, viewport and surface opaque region dimensions. State is now only set when the window and/or backbuffer dimensions change.
This repurposes the viewport rect to always hold the actual size of the window, which can differ from the SDL size if things are being scaled. The SDL_Rect was removed in favor of two ints, as the x/y members of the struct were never used, so they just wasted space.
Since the internal variables always have the true window size, the width/height getter functions are no longer required and can be removed.
|
|
f687cbd4
|
2022-10-06T09:00:57
|
|
Clarified that GNU sort isn't required, we just need the -V option to be supported
|
|
8c587636
|
2022-10-06T08:25:54
|
|
GNU sort isn't available on older macOS and some BSD systems
Don't prevent building entirely, just warn that we won't be able to find dynamic libraries in this case.
Fixes https://github.com/libsdl-org/SDL/pull/6338
|
|
e3b2830f
|
2022-10-01T11:11:10
|
|
updated VS project file
|
|
d2160c29
|
2022-10-05T21:42:26
|
|
iOS: implement SDL_GetWindowSizeInPixels.
|
|
fa7ffa4e
|
2022-10-06T03:37:50
|
|
change the iconv configuration option names to be more verbose.
|
|
4ca86dae
|
2022-10-05T23:26:14
|
|
Sync SDL wiki -> header
|
|
ddc3de60
|
2022-10-05T16:24:05
|
|
Added mapping for PS5 controller over Bluetooth on Android 12
Tested on Pixel 3a
|
|
81afb3e3
|
2022-10-05T16:18:09
|
|
Need to swap endianness when extracting the CRC from game controller mappings
|
|
294ccba0
|
2022-10-05T23:56:56
|
|
better wording for --enable-iconv description
|
|
92c71ae3
|
2022-10-05T21:59:08
|
|
[iOS] respect initial status bar configuration when displaying the launch storyboard
|
|
5b131364
|
2022-08-06T10:48:53
|
|
[UIKit] handle app lifecycle events in a custom object instead of AppDelegate
removes the need to call SDL counterparts manually when custom AppDelegate is used
|
|
c9f60cce
|
2022-10-05T17:12:08
|
|
cmake+autotools: add option to enable/disable iconv
|
|
e41942e8
|
2022-10-05T13:36:25
|
|
fix compilation error SDL_coreaudio mixing declarations and code
|
|
d0657fde
|
2022-10-05T02:15:22
|
|
cmake: Use DWARF 4 debug information when building using mingw
See f18fae4c689a68bd50ce34d6b9c1f014c2f220a2
|
|
f18fae4c
|
2022-10-04T16:46:29
|
|
Use DWARF 4 debug information when building using mingw
See this bug for more information:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377
Fixes https://github.com/libsdl-org/SDL/issues/6139
|
|
cbb1cf0c
|
2022-10-04T21:15:09
|
|
cmake+xcode: only create SDL2::SDL2main target when it does not exist again
|
|
fdef96e2
|
2022-10-04T12:08:09
|
|
Android: remove "nativeSetComposingText" since it's not used anymore
(and it may fail registering at init if code is cleaned with proguard)
|
|
eac3d6d3
|
2022-10-04T10:46:42
|
|
SDL_video.c: fix variable 'i' may be uninitialized when used here "_this->name = bootstrap[i]->name;"
|
|
ad29875e
|
2022-04-18T17:03:05
|
|
Wayland: Emulate mouse warp using relative mouse mode
Several games (including Source and GoldSrc games, and Bioshock
Infinite) attempt to "fake" relative mouse mode by repeatedly warping
the cursor to the centre of the screen. Since mouse warping is not
supported under Wayland, the viewport ends up "stuck" in a rectangular
area.
Detect this case (mouse warp while the cursor is not visible), and
enable relative mouse mode, which tracks the cursor position
independently, and so can Warp successfully.
This is behind the SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP hint, which
is enabled by default, unless the application enables relative mouse
mode itself using SDL_SetRelativeMouseMode(SDL_TRUE).
Note that there is a behavoural difference, in that relative mouse mode
typically doesn't take mouse accelleration into account, but the
repeated-warping technique does, so mouse movement can seem very slow
with this (unless the game has its own mouse accelleration option, such
as in Portal 2).
|
|
9e3c4b9f
|
2022-10-03T17:50:01
|
|
Use the correct platform defines
|
|
5291e5cb
|
2022-10-03T17:36:17
|
|
Added version checking to SDLActivity.java
Make sure the SDL java and C code match when updating SDL in a game.
Right now we're assuming that we only have to make sure release versions match. We can extend the version string with an interface version if we need more fine grained sanity checking.
Fixes https://github.com/libsdl-org/SDL/issues/1540
|
|
3607f831
|
2022-10-03T11:00:50
|
|
Find out if a controller is wireless using WGI (thanks @DJm00n!)
Confirmed using an Xbox Series X controller over USB and Bluetooth
Fixes https://github.com/libsdl-org/SDL/issues/6322
|