xerpi / ds4vita

Use a DS4 on your PSVita
177 stars 34 forks source link

Remap buttons? #28

Open xSASxZaros opened 7 years ago

xSASxZaros commented 7 years ago

Hi sorry if this has been answered elsewhere, but I couldn't find anything about it.

Is it possible to remap buttons? I'd like to use L2 and R2 for L and R while playing Vita games, rather than L1 and R1. Thanks very much for your work. :)

Regards.

parkerlreed commented 7 years ago

The assignments can be easily swapped if you know how to build the plugin

https://github.com/xerpi/ds4vita/blob/master/main.c#L226

Replace those two with the two above it so it looks like

    if (ds4->l2)
        buttons |= SCE_CTRL_L1;
    if (ds4->r2)
        buttons |= SCE_CTRL_R1;
xSASxZaros commented 7 years ago

Hi thanks for replying - I don't suppose you could point me in the direction of a guide that can explain how to build plugins? I've never done it before and I googled for a while but I couldn't find anything that explained it in an easy way, haha.

Regards.

xerpi commented 7 years ago

@xSASxZaros you have to install the vitasdk: https://vitasdk.org/