Skip to content

raylib.SetExitKey

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Set a custom key to exit program (default is KEY_ESCAPE; KEY_NULL disables it)

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