1# devilutionX PS Vita port 2 3## How To Play: 4 - Install VPK 5 - Copy diabdat.mpq from your CD or GoG installation (or [extract it from the GoG installer](https://github.com/diasurgical/devilutionX/wiki/Extracting-the-.MPQs-from-the-GoG-installer)) to the `ux0:/data/diasurgical/devilution/`. 6 7# Building from Source 8 9``` 10cd build 11cmake -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=Release .. 12make 13``` 14 15# Multiplayer 16 - Not supported yet 17 18# Controls 19 20## Default 21 22- Left analog or D-Pad: move hero 23- ○: attack nearby enemies, talk to townspeople and merchants, pickup/place items in the inventory, OK while in main menu 24- ×: select spell, back while in menus 25- △: pickup items, open nearby chests and doors, use item in the inventory 26- □: cast spell, delete character while in main menu 27- L1: use health item from belt 28- R1: use mana potion from belt 29- Left back touch panel: character sheet (alt: Start + ←, alt: L2 on ds4) 30- Right back touch panel: inventory (alt: Start + →, alt: R2 on ds4) 31- Start + ↓: toggle automap 32- Start + Select: game menu (alt: Start + ↑) 33- Select + ×/○/□/△: Spell hotkeys 34- Right analog: move automap or simulate mouse 35- Select + L1: left mouse click 36- Select + R1: right mouse click 37- Start + □: quest log 38- Start + △: spell book 39 40## Options 41 42There's special section `controls` in diablo.ini file, that allows you to adjust controls: 43``` 44[controls] 45switch_potions_and_clicks=0 46dpad_hotkeys=0 47enable_second_touchscreen=1 48sdl2_controller_mapping=50535669746120436f6e74726f6c6c65,PSVita Controller,y:b0,b:b1,a:b2,x:b3,leftshoulder:b4,rightshoulder:b5,dpdown:b6,dpleft:b7,dpup:b8,dpright:b9,back:b10,start:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,leftstick:b14,rightstick:b15, 49``` 50 51- **dpad_hotkeys:** dpad works as hotkeys without holding Start button 52- **switch_potions_and_clicks:** L1/R1 works as left/right mouse clicks by debault, and as health/mana potion while holding Select 53- **sdl2_controller_mapping:** allows you to remap controls. It uses https://github.com/gabomdq/SDL_GameControllerDB syntax 54- **enable_second_touchscreen:** enable/disable back touch mapping to L2/R2 55