Using cInput to Control Your Game

Once your inputs are defined in your setup script, you'll probably want to use those inputs to control your game. This is very simple to do using cInput's GetKey(), GetKeyDown(), GetKeyUp(), and GetAxis() functions, which all work in the same way as Unity's Input class functions of the same name.

For example:

If the above code seems familiar, it should! One of the main tenets of cInput was to make its syntax as similar to Unity's Input class as possible.

Last updated