Commit Graph

6522 Commits

Author SHA1 Message Date
Carsten Teibes f77437cd4b Switch: Enable more audio formats with resampling (#12)
Instead of erroring out, just tell SDL2 we want a different format, so
it will do the necessary steps (configuring the resampler) and still
feed us with a format known supported by the hardware.
2021-06-18 15:08:55 +01:00
Cpasjuste bf248dd581 switch: add touchscreen support 2021-06-18 15:08:55 +01:00
Cpasjuste 97afa95d57 switch: increase audio thread priority
switch: use bigger stack size
switch: fix bytes per sample ? (seems perfect audio at least)
2021-06-18 15:08:55 +01:00
Cpasjuste 3b41de6ba9 switch: fix clear framebuffers 2021-06-18 15:08:55 +01:00
Cpasjuste b2f8a546da switch: fix incorrect window centering (#10) 2021-06-18 15:08:55 +01:00
Cpasjuste abf3a5b7ed switch: add game controller support 2021-06-18 15:08:46 +01:00
Dave Murphy 9a0008af63 switch flags to sdl2-config 2021-06-18 14:22:40 +01:00
Cpasjuste 05b71ace4f switch: handle aspect ratio correction in fullscreen mode 2021-06-18 14:22:40 +01:00
cpasjuste 53e19d42b9 SWITCH: fix crash on exit (hidSetNpadJoyAssignmentModeDual on invalid controller in quit) 2021-06-18 14:22:40 +01:00
Cpasjuste 1a52258796 SWITCH: properly implement multiple joysticks support 2021-06-18 14:22:40 +01:00
cpasjuste fd0204cc42 SWITCH: prevent fb overflow in case of external resolution change 2021-06-18 14:22:40 +01:00
Cpasjuste daf09af4dd SWITCH: allow any window size, handle SDL_SetWindowDisplayMode
* SWITCH: update test for latest changes
* SWITCH: fix devkitpro build
2021-06-18 14:22:40 +01:00
cpasjuste 42c8e7e175 SWITCH: bitmask joystick buttons to fit HidControllerKeys
SWITCH: improve and comment test
2021-06-18 14:22:40 +01:00
cpasjuste 25454343e2 SWITCH: properly close thread 2021-06-18 14:22:40 +01:00
cpasjuste c451671c4d SWITCH: thread entry should be static 2021-06-18 14:22:40 +01:00
cpasjuste f6e5951ebf SWITCH: add audio support 2021-06-18 14:22:40 +01:00
Cpasjuste 9d4ad79af1 SWITCH: thread fix 2021-06-18 14:22:01 +01:00
Cpasjuste b926068855 SWITCH: add joystick support 2021-06-18 14:22:01 +01:00
Cpasjuste 005829b775 SWITCH: first commit, missing audio, input... (#1)
* SWITCH: first commit, missing audio, input...
2021-06-18 14:22:01 +01:00
Dave Murphy 9a27289760 get aarch64-none-elf to configure & build 2021-06-18 14:20:10 +01:00
Sam Lantinga 4cd981609b Fixed whitespace 2020-12-21 09:44:25 -08:00
Ozkan Sezer 537f824f38 test/Makefile.os2: wlib must run case-sensitively. 2020-12-21 20:40:10 +03:00
Manuel Alfayate Corchete 8766d6040b [Video/KMSDRM] Fix potetial access to freed structure and complete errorchecks. 2020-12-21 17:29:24 +01:00
Manuel Alfayate Corchete b06ef3a18c [Video/KMSDRM] Manually re-show the cursor on window creation, if needed. 2020-12-21 01:53:11 +01:00
Ozkan Sezer 4198f0e52c fix uninitialized warnings in KMSDRM_CreateCursor() 2020-12-21 01:20:30 +03:00
Manuel Alfayate Corchete a8dbcab132 [Video/KMSDRM] Don't copy the cursor bitmap to the cursor GBM BO until we're showing it. 2020-12-20 21:48:05 +01:00
Sam Lantinga 67e9132dd5 Fixed circular dependency problem when building in the test directory 2020-12-20 12:22:28 -08:00
Sam Lantinga ee180efda7 Fixed bug 5406 - Upstreaming DragonFlyBSD changes from DeltaPorts (patch from David Carlier) 2020-12-20 12:08:49 -08:00
Ozkan Sezer 22275b35e4 cmake: fix building for mac (bug #5407.) 2020-12-20 21:55:02 +03:00
Manuel Alfayate Corchete 2756b0f337 [Video/KMSDRM] Init and deinit mouse stuff at the same time that GBM stuff. 2020-12-20 14:29:58 +01:00
Ozkan Sezer e91153f278 fix non-ARM h/w on FreeBSD builds (bug #5405, patch from David Carlier.) 2020-12-20 03:03:21 +03:00
Manuel Alfayate Corchete cf71e01734 [Video/KMSDRM] Remove auxiliary AMDGPU compatibility workarounds not needed anymore. 2020-12-19 23:32:09 +01:00
Manuel Alfayate Corchete af1f91cb36 [Video/KMSDRM] Correct typo. 2020-12-19 20:21:07 +01:00
Manuel Alfayate Corchete cf48955680 [Video/KMSDRM] Honor the device index in Vulkan. Add notes about the display index. 2020-12-19 20:15:50 +01:00
Manuel Alfayate Corchete ab3a390e26 [Video/KMSDRM] Better ATOMIC caps testing: patch by Oskan Sezer. 2020-12-19 17:35:04 +01:00
Manuel Alfayate Corchete 436499f3ec [Video/KMSDRM] Comment out some debug info, adjust comments for future work. 2020-12-19 02:08:59 +01:00
Ozkan Sezer 6b81cac420 remove duplicated SDL_SetError after calling check_atomic_modesetting() 2020-12-19 01:25:50 +03:00
Manuel Alfayate Corchete 8952a61324 [Video/KMSDRM] Re-arrange display members setup. 2020-12-18 23:17:42 +01:00
Manuel Alfayate Corchete f60f8d5d84 [Video/KMSDRM]: Add Vulkan support to the KMSDRM backend. 2020-12-18 22:53:51 +01:00
Sam Lantinga cbe13d232d Fixed controller hotplug detection when joystick thread is not enabled 2020-12-18 13:10:36 -08:00
Ozkan Sezer 6ac0b23d3a SDL_DirectFB_video.c: DSPF_ABGR requires directfb >= 1.5.0 -- add guard. 2020-12-18 21:37:20 +03:00
Sam Lantinga f0577bc9ea ControllerList: setup the ps5 default deadzone to match PS4 instead of defaulting to same a XboxOne/Switch 2020-12-18 10:09:06 -08:00
Sam Lantinga 5f7cd1fa88 Added hints to control whether SDL updates joystick and sensor state in the main event loop 2020-12-18 10:08:59 -08:00
Ozkan Sezer 6c4ab48471 SDL_kmsdrmvideo.c: check atomic modesetting in check_modesetting()
.. so that KMSDRM_CreateDevice() can fail and SDL_VideoInit() would
move on to next bootstrap member which is kmsdrm_legacy.  hopefully
fixes bug #5393.
2020-12-18 17:50:02 +03:00
Ozkan Sezer 5c654d0df4 tests: regenerate configure using autoconf patched for AC_PATH_X11
Specifically this patch which does not invoke _AC_PATH_X_XMKMF and
_AC_PATH_X_DIRECT internal autoconf routines when cross-compiling:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=33c3a47c04ab70a4dd54963fe433a171bc03747f

Without this, CFLAGS would brokenly have system include paths like
-I/usr/include/X11 when cross-compiling e.g. for windows.  (And it
also resulted in annoying imake crashes for my setup...)
2020-12-18 17:00:00 +03:00
Sam Lantinga 6bd4c717a1 Fixed bug 5402 - ARM support little update proposal
David Carlier

No fix but mostly an update for ARM architecture.
2020-12-17 21:41:23 -08:00
Ozkan Sezer 10625f9d89 SDL_windowsmessagebox.c: go back to hg rev 14458 state.
encountering a NULL caption in AddDialogString() is intended, i.e.
AddDialogStaticIcon() sends it as NULL on purpose.
2020-12-17 23:50:00 +03:00
Ozkan Sezer 4d6eb30523 SDL_windowsmessagebox.c (AddDialogControl): add back NULL caption check.
because AddDialogStaticIcon() sends a NULL caption -- fixes bug #5401.
2020-12-17 23:28:20 +03:00
Ozkan Sezer 90456670b5 more "'for' loop initial declarations are only allowed in C99 mode" fixes 2020-12-17 14:11:00 +03:00
Ozkan Sezer ed4fcb2cfc kmsdrm_legacy build fixes:
- add missing '_LEGACY' to symbol names
- perform missing 2.0.14 portage
- fix 'for' loop initial declarations are only allowed in C99 mode errors
2020-12-16 03:24:10 +03:00