Skip to content

raylib.SetExitKey

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set a custom key to exit program NOTE: default exitKey is set to ESCAPE

Parameters

Parameter Default Value Note
key

Return value

None.

Notes

Example

// Disable the default ESC exit key
raylib.SetExitKey raylib.KEY_NULL
// Now only closing the window button will end the program

Clone this wiki locally