COGS uses the rather excellent SDL2 library to handle USB controllers. This uses a community sourced config file with 100s of USB controllers. This is the gamecontrollerdb.txt file in the root dir of your game. It will be a reasonably up-to-date copy of the file but it's perfectly fine to overwrite the one in the game with an updated one.
Your controller should work. If it doesn't, there are utilities you can use to create the entry for your controller and OS. If you do need to add your controller, please make the effort to update the database so other people with your controller will benefit. Either push your new file back via Github or mail me a compressed copy of your updated file (email@example.com) and I will add it. Note: I have no involvement with SDL or the SDL controller database.
There are 2 virtual keyboard controllers you can use as well as the USB controllers:
|Button||Keyboard 1||Keyboard 2|
|DPad Up||W||Numpad 8 (Up)|
|DPad Down||S||Numpad 2 (Down)|
|DPad Left||A||Numpad 4 (Left)|
|DPad Right||D||Numpad 6 (Right)|
|A Button||Return||Numpad Enter|
|B Button||Space||Numpad 0|
Note: If you want to use Keyboard2, make sure Num Lock is off.
Other Key Controls
- "+" and "-" can be used to change the volume.
- To exit any COGS game, press Esc twice in quick succession.