Disable or change exitKey?

I would like to use KEY_ESCAPE as a "back" key but it's hard-coded as the exitKey.

How do I disable or override that?

Thank you.

Comments

  • edited January 26
    Here it is the function you need, included in raylib:

    void SetExitKey(int key); // Set a custom key to exit program (default is ESC)

    ;)
  • Thank you. To disable it I just did
    SetExitKey(9999);
Sign In or Register to comment.