From 794cd989f08b5206187e693adade6834fe812c23 Mon Sep 17 00:00:00 2001 From: Rain Date: Mon, 15 Dec 2025 04:35:19 +0200 Subject: [PATCH] Fix incorrect logic in IsKeypad Fix a bug where IsKeypad would always return false, because the button code input was being compared against an incorrect enum value for the lower bound. --- src/public/inputsystem/ButtonCode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/inputsystem/ButtonCode.h b/src/public/inputsystem/ButtonCode.h index ee6cb29762f..f9706187d54 100644 --- a/src/public/inputsystem/ButtonCode.h +++ b/src/public/inputsystem/ButtonCode.h @@ -310,7 +310,7 @@ inline bool IsSpace( ButtonCode_t code ) inline bool IsKeypad( ButtonCode_t code ) { - return ( code >= MOUSE_FIRST ) && ( code <= KEY_PAD_DECIMAL ); + return ( code >= KEY_PAD_0 ) && ( code <= KEY_PAD_DECIMAL ); } inline bool IsPunctuation( ButtonCode_t code )