summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-03-09 13:01:10 +0100
committerRay <[email protected]>2020-03-09 13:01:10 +0100
commit5895fb6adc83811104843f8e489c67dfe59d0663 (patch)
tree48b4bd3c990322b17003eb5221b08bbdd4d4fe1f /src/core.c
parenteb6f8bd0baa3621e27c64a864f3e9871883f515f (diff)
downloadraylib-5895fb6adc83811104843f8e489c67dfe59d0663.tar.gz
raylib-5895fb6adc83811104843f8e489c67dfe59d0663.zip
Address issue #1125
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 0cd5ef33..3053a218 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4638,7 +4638,7 @@ static void ProcessKeyboard(void)
if (keysBuffer[i] == 0x1b)
{
// Detect ESC to stop program
- if (bufferByteCount == 1) CORE.Input.Keyboard.currentKeyState[256] = 1; // raylib key: KEY_ESCAPE
+ if (bufferByteCount == 1) CORE.Input.Keyboard.currentKeyState[CORE.Input.Keyboard.exitKey] = 1;
else
{
if (keysBuffer[i + 1] == 0x5b) // Special function key