UnbindKey

From Spheriki

Jump to: navigation, search

Unbinds a bound key. Used alongside BindKey().


Contents

Usage

UnbindKey(key);
  • key The key to remove binding from. See the list of keycode constants or docs/keys.txt in your Sphere installation for possible values.


Example

If KEY_SPACE was previously bound, we can undo that by using this function:

UnbindKey(KEY_SPACE);


Notes

  • By reducing the number of bound keys, the Sphere engine will run slightly faster.


See also

Personal tools