Commit Graph

6505 Commits

Author SHA1 Message Date
Matthieu Milan d4f7e2d03e switch: fix crash on exit (#42) 2021-06-18 15:08:55 +01:00
cpasjuste bf7515613e switch: update for release-2.0.12 2021-06-18 15:08:55 +01:00
cpasjuste 971b372465 switch: update configure.ac, regenerate configure 2021-06-18 15:08:55 +01:00
Julian Uy 088d2b287e Fix compilation of cpuinfo module (#41) 2021-06-18 15:08:55 +01:00
cpasjuste 16431f9db0 switch: use switch timer 2021-06-18 15:08:55 +01:00
cpasjuste 4e7d34634d switch: cleanup SDL_config.h.in 2021-06-18 15:08:55 +01:00
cpasjuste c91a7ee5de switch: revert SDL_config.h commit error 2021-06-18 15:08:55 +01:00
cpasjuste ce8a66d17a switch: cleanup video interface 2021-06-18 15:08:55 +01:00
cpasjuste 6be89a4dc1 switch: fix switch joystick interface for latest sdl2 changes 2021-06-18 15:08:55 +01:00
cpasjuste 776bb49ba1 switch: minor cleanup 2021-06-18 15:08:55 +01:00
cpasjuste 481c32b352 switch: use unix timers 2021-06-18 15:08:55 +01:00
Cpasjuste 93d84618b2 switch: fix window cropping (#35) 2021-06-18 15:08:55 +01:00
rsn8887 c30ec89b7a Switch: Add support for physical keyboard and mouse (#33) 2021-06-18 15:08:55 +01:00
Dave Murphy e2adbf54e6 regenerate configure 2021-06-18 15:08:55 +01:00
Dave Murphy 32f4915699 return switch cflags to sdl2-config 2021-06-18 15:08:55 +01:00
Cpasjuste 12f161236f switch: use audren audio
fix suspend, allow freqs other than 48khz
2021-06-18 15:08:55 +01:00
Cpasjuste 0c22a3c059 switch: lower down thread priority for SDL_THREAD_PRIORITY_HIGH
major speed improvement when audio is used
2021-06-18 15:08:55 +01:00
Cpasjuste c465ab9b4d Switch sdl2 syscond fix (#28)
* switch: return SDL_MUTEX_TIMEDOUT when SDL_CondWaitTimeout... timeout
2021-06-18 15:08:55 +01:00
Cpasjuste 8629d3ff0b switch: fix SDL_CondWaitTimeout (#27) 2021-06-18 15:08:55 +01:00
Cpasjuste 45b864bb7b switch: use new gfx (#26) 2021-06-18 15:08:55 +01:00
Cpasjuste 6748b87af8 switch: use c11 threads 2021-06-18 15:08:55 +01:00
rsn8887 063a1c9265 switch: support reading SL/SR buttons on LAYOUT_LEFT and LAYOUT_RIGHT (#23) 2021-06-18 15:08:55 +01:00
Cpasjuste 2ca320b95a switch: remove SDL_LoadFunction/SDL_UnloadObject from SDL_switchopengles.c(#22)
Functions already defined in dummy loadso
2021-06-18 15:08:55 +01:00
Dave Murphy 8a391fc6ce regenerate configure 2021-06-18 15:08:55 +01:00
Cpasjuste a96c709351 switch: increase thread stack size (fix a lot of stuff)
switch: enable load balancing across cores (@fincs)
2021-06-18 15:08:55 +01:00
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