TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
7k stars 559 forks source link

default keyboard and controller bindings #920

Closed cjfp closed 1 year ago

cjfp commented 1 year ago

My gamepad isn't compatible (it's a Switch SNES controller), so I'm trying to create a mapping with JoyToKey. My questions are:

1) What is the keyboard binding for Interact?

2) Is the following table otherwise correct and complete?

         Keys, Buttons, Command
Space | V | Z,       A, Action | Flip
       Escape,       B, Menu
          ???,       X, Interact
        Enter,       Y, Enter
            R,      RB, Restart
            M,     n/a, Mute Everything
            N,     n/a, Mute Only Music
           Up,      Up, Up | Flip
         Down,    Down, Down | Flip
         Left,    Left, Left
        Right,   Right, Right

Thanks!

InfoTeddy commented 1 year ago

Interact is E only if you have it enabled in options (options -> gameplay -> speedrun options -> interact button). Otherwise, Enter is used. And yes, the table looks complete.

By the way, input rebinding is planned for 2.4 so you won't need to use a third-party program like JoyToKey.

InfoTeddy commented 1 year ago

Ok, I missed that your gamepad wasn't compatible. Maybe you could drop a gamecontrollerdb.txt next to the game executable? I see a lot of SNES and Switch controllers in there, that's probably better than using JoyToKey.

cjfp commented 1 year ago

Thanks for checking and filling in re: Interact.

I tried your suggestion to use gamecontrollerdb.txt but it doesn't work for me. JoyToKey 5.2.1 is really pretty good once it's set up. I have it set now to switch to the VVVVVV bindings when the game launches. I have to do this for a lot of games, but I'm willing to tolerate it given how much I like the controller. There is an XInput wrapper that someone wrote but it introduces other problems, like switching the buttons around.

Anyway, I'm happy!