summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/docs/README-vita.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/contrib/SDL-2.30.2/docs/README-vita.md')
-rw-r--r--src/contrib/SDL-2.30.2/docs/README-vita.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/docs/README-vita.md b/src/contrib/SDL-2.30.2/docs/README-vita.md
new file mode 100644
index 0000000..3dbaf1c
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/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```
14 cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=Release
15 cmake --build build
16 cmake --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_setenv("VITA_RESOLUTION", "720", 1);` and `SDL_setenv("VITA_RESOLUTION", "1080", 1);`
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_setenv("VITA_PVR_OGL", "1", 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_setenv("VITA_DISABLE_TOUCH_FRONT", "1", 1);` and `SDL_setenv("VITA_DISABLE_TOUCH_BACK", "1", 1);`
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.