summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/docs/README-vita.md
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
committer3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
commit6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch)
tree34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/docs/README-vita.md
parent8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff)
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/docs/README-vita.md')
-rw-r--r--src/contrib/SDL-3.2.20/docs/README-vita.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/docs/README-vita.md b/src/contrib/SDL-3.2.20/docs/README-vita.md
new file mode 100644
index 0000000..8d7e70b
--- /dev/null
+++ b/src/contrib/SDL-3.2.20/docs/README-vita.md
@@ -0,0 +1,33 @@
1PS Vita
2=======
3SDL port for the Sony Playstation Vita and Sony Playstation TV
4
5Credit to
6* xerpi, cpasjuste and rsn8887 for initial (vita2d) port
7* vitasdk/dolcesdk devs
8* CBPS discord (Namely Graphene and SonicMastr)
9
10Building
11--------
12To build for the PSVita, make sure you have vitasdk and cmake installed and run:
13```sh
14cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=Release
15cmake --build build
16cmake --install build
17```
18
19
20Notes
21-----
22* gles1/gles2 support and renderers are disabled by default and can be enabled by configuring with `-DVIDEO_VITA_PVR=ON`
23 These renderers support 720p and 1080i resolutions. These can be specified with:
24 `SDL_SetHint(SDL_HINT_VITA_RESOLUTION, "720");` and `SDL_SetHint(SDL_HINT_VITA_RESOLUTION, "1080");`
25* Desktop GL 1.X and 2.X support and renderers are also disabled by default and also can be enabled with `-DVIDEO_VITA_PVR=ON` as long as gl4es4vita is present in your SDK.
26 They support the same resolutions as the gles1/gles2 backends and require specifying `SDL_SetHint(SDL_HINT_VITA_PVR_OPENGL, "1");`
27 anytime before video subsystem initialization.
28* gles2 support via PIB is disabled by default and can be enabled by configuring with `-DVIDEO_VITA_PIB=ON`
29* By default SDL emits mouse events for touch events on every touchscreen.
30 Vita has two touchscreens, so it's recommended to use `SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");` and handle touch events instead.
31 Individual touchscreens can be disabled with:
32 `SDL_SetHint(SDL_HINT_VITA_ENABLE_FRONT_TOUCH, "0");` and `SDL_SetHint(SDL_HINT_VITA_ENABLE_BACK_TOUCH, "0");`
33* Support for L2/R2/R3/R3 buttons, haptic feedback and gamepad led only available on PSTV, or when using external ds4 gamepad on vita.