Commit Graph

6530 Commits

Author SHA1 Message Date
Cpasjuste 2776779715 switch: move to opengles 2 renderer
* switch: move to opengles 2 rendering

* switch: remove libglad dependecy

* switch: minor cleanup

* switch: minor cleanup 2

* switch: use SDL2 EGL video, fix inputs, major cleanup

* switch: fix configure flags (static EGL funcs)

* switch: update to latest mesa (remove SDL_egl.c hacks)

* switch: restore vanilla SDL_egl.c (remove crap)

* switch: use RGBA8888 display mode instead of ARGB888

* switch: add "multiple display" mode support
2021-06-18 15:08:55 +01:00
Cpasjuste 9e06af0445 switch: update for latest libnx 2021-06-18 15:08:55 +01:00
Dave Murphy 43be1d5030 remove specs 2021-06-18 15:08:55 +01:00
cpasjuste 20c0dad801 switch: revert thread priority back to 0x1C as it's faster 2021-06-18 15:08:55 +01:00
Jeremy S. Postelnek 26a79e4d1c fix player one joycon to auto use handheld or detached (#16) 2021-06-18 15:08:55 +01:00
Cpasjuste 137217702f switch: let the user handle single/dual joycons mode (#14) 2021-06-18 15:08:55 +01:00
Cpasjuste 2e41af5305 switch: update threading code, add SDL_SYS_SetThreadPriority (#15) 2021-06-18 15:08:55 +01:00
Carsten Teibes f07aea199b pkg-config: Avoid duplication of linker flags (#13) 2021-06-18 15:08:55 +01:00
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