Commit Graph

6515 Commits

Author SHA1 Message Date
cpasjuste 94b2c02e02 switch: add cmake support
switch: update for latest sdl2 changes
switch: update for latest libnx hid changes
2021-06-22 14:21:29 +02:00
Vicki Pfau cd14a6c0b6 switch-sdl2: Fix importing SDL2 on platforms that only support static libs 2021-06-18 15:08:55 +01:00
Julian Uy 995ae3fbef Set SDL_HINT_TOUCH_MOUSE_EVENTS with priority SDL_HINT_DEFAULT (#56)
This will ensure that the hint won't be overwritten if the hint is set before SDL is initialized
2021-06-18 15:08:55 +01:00
Cpasjuste 2350060886 switch: add joystick rumble support (#54) 2021-06-18 15:08:55 +01:00
Cpasjuste 911c2b2833 switch: fix exit crash when using SDL_GL_Load/UnloadLibrary (#53) 2021-06-18 15:08:55 +01:00
Cpasjuste 69747d1378 switch: add software keyboard support (#49) 2021-06-18 15:08:55 +01:00
Matthieu Milan f94ecdc57f switch: enable SDL_SetRelativeMouseMode (#47) 2021-06-18 15:08:55 +01:00
rsn8887 9d5383ff8f switch: fix touch creating double events 2021-06-18 15:08:55 +01:00
Cpasjuste 1b31368a40 switch: handle SDL_WINDOW_RESIZABLE 2021-06-18 15:08:55 +01:00
Cpasjuste 220f042d06 switch: fix window size handling 2021-06-18 15:08:55 +01:00
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