Commit graph

12044 commits

Author SHA1 Message Date
David Vanderson
0f23d064e1 remove comment 2024-08-31 15:10:15 -06:00
David Vanderson
b002ceb138 Update build.zig
On linux, SDL_config.h needs to be installed in the SDL2 subdir.
2024-08-31 15:10:15 -06:00
Jonathan Marler
ccb56626ec add missing include-pregen directory in build.zig.zon 2024-07-04 11:54:18 -06:00
Jonathan Marler
1bb5cc3435 define USING_GENERATED_CONFIG_H C macro when applicable
The pregenerated SDL_config.h header checks if USING_GENERATED_CONFIG_H
is defined and if so asserts an error.  This PR modifies build.zig to
define this C macro when we are not supposed to be using the pregenerated
SDL_config.h header.
2024-07-04 13:34:52 -04:00
Jonathan Marler
b77d252f3f initial linux support
With this commit I'm able to build SDL for linux and use it to build/run
https://github.com/allyourcodebase/VVVVVV on my Ubuntu machine.
2024-07-03 00:24:27 -06:00
Andrew Kelley
d3ce72923a fix build script
merged PR used old API
2024-06-10 17:41:08 -07:00
Jae B
af3cb08013 add emscripten support 2024-06-10 20:39:38 -04:00
Andrew Kelley
307acc68e3 update .gitignore for zig 0.13.0 2024-06-10 17:37:25 -07:00
Andrew Kelley
3a80107292 update to zig 0.12.0 2024-05-24 12:25:14 -07:00
Andrew Kelley
db4a162db2 update to zig 0.12.0-dev.2031+ecd520f66 2024-01-04 00:38:53 -07:00
Andrew Kelley
3eb87f0f5b update to zig 0.12.0-dev.1107+149f2f8ad 2023-10-17 23:54:53 -07:00
Andrew Kelley
c90c2d0a3b update to zig 0.12.0-dev.867+1f6d82ec0 2023-10-09 18:14:25 -07:00
Andrew Kelley
aef9574031 update to latest build.zig API 2023-04-17 13:03:16 -07:00
Andrew Kelley
73c3831844 support macos 2023-02-26 22:13:14 -08:00
Andrew Kelley
d20f7fb7cb fix undefined symbol errors when building for windows 2023-02-25 15:55:03 -07:00
Andrew Kelley
2c79fd8fd0 patch: disable windows.gaming.input.h for now 2023-02-25 15:53:28 -07:00
Andrew Kelley
1527b98bfc patch: check _WIN32 instead of _MSC_VER 2023-02-25 15:52:54 -07:00
Andrew Kelley
e6e6b3f716 nice try, dynapi 2023-02-25 15:23:11 -07:00
Andrew Kelley
e1e91bade5 add a build.zig script
It produces a static library when targeting Windows, at least.
2023-02-25 15:14:20 -07:00
Andrew Kelley
3a2ea1056c remove SDL_config.h.in
we will rely on the equivalent file SDL_config.h.cmake instead.
2023-02-25 15:13:44 -07:00
Andrew Kelley
618ffc034b patch SDL_gl.h to work with mingw-w64 2023-02-25 15:13:27 -07:00
Andrew Kelley
e1231ed846 update readme 2023-02-25 14:17:30 -07:00
Andrew Kelley
ff9294a02c delete unnecessary files 2023-02-25 14:15:18 -07:00
Andrew Kelley
6e8de27a34 revert source files to release-2.26.3 2023-02-25 14:12:18 -07:00
Torge Matthies
f18b5656f6 x11: Fix duplicate Xinput2 event reception
Passing True for owner_events in the XGrabPointer call makes all
XI_RawMotion events appear in the queue twice, with the only difference
between them being the value of XGenericEventCookie::cookie. These have
always been filtered out by a check in the XI_RawMotion handler,
however with a mouse that polls at more than 1 kHz frequency, there
also exist legitimate events that appear indistinguishable from these
duplicated events. These must not be filtered out, otherwise the
pointer may move at an inconsistent speed, appearing like a bad pointer
acceleration implementation.

Change owner_events to False in the XGrabPointer and remove the
duplicate event detection code to fix this.

Signed-off-by: Torge Matthies <openglfreak@googlemail.com>
2023-02-25 10:04:46 -08:00
David Carlier
d73f2d76a0 Haiku modernizing a bit the C++ code with C++11 heuristics
with BApplication
2023-02-24 20:54:41 -08:00
Sam Lantinga
2897de9efc Clear the undefined position state when the window is placed
This allows the window to be recreated in the same location if needed, for example if recreated because of switching to OpenGL rendering.
2023-02-24 18:04:54 -08:00
Sam Lantinga
4d9d343662 Added handling for undefined window position on X11 2023-02-24 17:49:45 -08:00
Sam Lantinga
3bfd596608 Added handling for undefined window position on Windows 2023-02-24 17:06:47 -08:00
Ryan C. Gordon
5b0351a672
wikiheaders: Fix wikilinks inside code sections a little. Not perfect yet. 2023-02-24 14:29:36 -05:00
Sam Lantinga
daffe02b11 Fixed relative mouse motion over remote desktop
Setting the cursor clip area to a single pixel prevents the relative mouse motion remote desktop warping from working, so the mouse is never recentered.
2023-02-24 09:20:38 -08:00
Ryan C. Gordon
0598ecc150
Sync wiki -> headers. 2023-02-24 11:49:41 -05:00
Ryan C. Gordon
d748a454a8
wikiheaders: fixed see-also conversion 2023-02-24 11:45:43 -05:00
Ryan C. Gordon
5ff49955ab
wikibridge: Fixes for manpage generation from Markdown format. 2023-02-24 10:21:54 -05:00
Anonymous Maarten
f2a277414f raspberry: SDL_DisplayMode's w/h members have been renamed to screen_w/screen_h
Found by running the coccinelle script on SDL's source tree.
2023-02-24 06:55:28 -08:00
Ryan C. Gordon
936a51d5cc
wikiheaders: Work to make the wiki exist primarily in Markdown format.
This adds a means to mass-convert the whole wiki to Markdown as a one-time
operation, and then some fixes to make --copy-to-headers correctly deal with
Markdown-formatted wiki pages.
2023-02-24 09:07:09 -05:00
Ozkan Sezer
2eb4ab5bb0 SDL_revision.h: added missing newline at end of file. 2023-02-23 23:55:56 +03:00
Sam Lantinga
516e48515e Changed the VID/PID used for the Backbone One controller on iOS 2023-02-23 12:24:15 -08:00
Sam Lantinga
05ac1f8d5a Print the full information for all joysticks that are connected 2023-02-23 11:58:14 -08:00
Sam Lantinga
59bf1c2853 Added support for the Backbone One PlayStation Edition 2023-02-23 11:57:48 -08:00
Sam Lantinga
b2d913883c Fixed view frame from flipping back and forth between landscape and portrait on iOS 2023-02-23 09:14:53 -08:00
Frank Praznik
e8fd7f74bd windows: Track the window display ID locally
Track the current window display ID locally so as not to depend on specific behavior of the video layer, which may change the value at times when it isn't expected.
2023-02-23 07:39:16 -08:00
Frank Praznik
9f1a7bb94c wayland: Track the window display ID locally
Track the current window display ID locally so as not to depend on specific behavior of the video layer, which may change the value at times when it isn't expected.
2023-02-23 07:39:16 -08:00
Frank Praznik
d9fadb8b47 video: Update the current display when moving a window programmatically
When moving a window programmatically, the move event will be deduplicated due to the window x and y coordinates already being updated, so the window's current display ID needs to be explicitly updated.
2023-02-23 07:39:16 -08:00
Frank Praznik
e8076b78ef video: Move fullscreen windows via SDL_UpdateFullscreenMode()
Update the target display ID and use SDL_UpdateFullscreenMode() when moving a fullscreen window to handle the case where the target display has an existing fullscreen window.
2023-02-23 07:39:16 -08:00
Sam Lantinga
c2f8a478d8 Don't set a logical presentation mode by default
SDL3 applications are DPI aware by default, and can set the logical presentation mode as appropriate.
2023-02-22 22:27:01 -08:00
Sam Lantinga
bff307c4b2 Fixed warning building on iOS 2023-02-22 22:03:25 -08:00
Sam Lantinga
6c9e199f73 Use bridged pointers to Objective C objects in C structures
Fixes https://github.com/libsdl-org/SDL/issues/7244
2023-02-22 22:03:25 -08:00
Sam Lantinga
0fe1e9f3a7 Cleaned up SDL_migration.cocci, removing old SDL3 names 2023-02-22 16:44:06 -08:00
Sam Lantinga
9eb19d2bf2 SDL_CheckWindowDisplayChanged() is a static function 2023-02-22 15:34:44 -08:00