mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 03:39:18 -05:00
Address issue #1125
This commit is contained in:
@ -4638,7 +4638,7 @@ static void ProcessKeyboard(void)
|
|||||||
if (keysBuffer[i] == 0x1b)
|
if (keysBuffer[i] == 0x1b)
|
||||||
{
|
{
|
||||||
// Detect ESC to stop program
|
// 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
|
else
|
||||||
{
|
{
|
||||||
if (keysBuffer[i + 1] == 0x5b) // Special function key
|
if (keysBuffer[i + 1] == 0x5b) // Special function key
|
||||||
|
|||||||
Reference in New Issue
Block a user