The Keys Class

The Keys class was born from the frustration of not being able to remember the strings for various keyboard or gamepad inputs as well as an attempt to prevent errors due to typos. Its primary purpose is to enable autocomplete for the various cInput functions which require the names of inputs as strings.

"What's the string for the # symbol? I can't remember if it's NumberSign, Hash, or Pound."

The Keys class has equivalents of all strings listed in Valid Inputs. It also attempts to make it easier to configure Xbox controllers for your game.

While this documentation makes heavy use of the Keys class, and recommends you do as well, its use is completely optional.

Tip: The Keys class can be found in cKeys.cs if you have access to the source code (cInput Pro only).

results matching ""

    No results matching ""