SDL2 for Vita 2.0.8dev version
This is a binary release of SDL2 Library version 2.0.8dev version ported to PS Vita.
Installation
To install, download and run
tar --no-same-owner --no-same-permissions -C $VITASDK/arm-vita-eabi -xJf sdl2_vita_20180523.tar.xz
Linking
Because of the included touch and Bluetooth functionality, programs linking to SDl2 now need the additional linker arguments
-lSceTouch_stub -lSceHid_stub
to compile successfully.
Compiling from Source
Clone or download the git repo source. Then cd into the SDL-Vita folder and run
make -f Makefile.vita install
The library will be installed to $VITASDK/arm-vita-eabi/lib/libSDL2.a, and the header files will be installed to $VITASDK/arm-vita-eabi/include/SDL2/*.h
Changelog:
- fix bug in UpdateTexture when starting y position not equal zero
- allow rendering textures with scaling < 100%
- remove bluetooth keyboard and mouse lag
- use screen, not active area, as reference for normalized touch coords on front panel
- use normalized touch coordinates following SDL specs
- use full analog joystick range
- only report mouse motion events when mouse has moved
- fix repeating keys for bluetooth keyboard
- fix Caps Lock and Num Lock keys for bluetooth keyboard
- bluetooth keyboard support
- bluetooth mouse support
- game controller API support with builtin config for Vita/VitaTV controllers.
- many bugfixes
- multiple controller support on VitaTV