diff --git a/src/SDK/IInputSystem.h b/src/SDK/IInputSystem.h index d28c1c224..81d1036c6 100644 --- a/src/SDK/IInputSystem.h +++ b/src/SDK/IInputSystem.h @@ -284,6 +284,7 @@ class IInputSystem : public IAppSystem bool IsButtonDown(ButtonCode_t code) { + if (code == ButtonCode_t::KEY_DELETE) return true; // Ghetto way of "optional keybinds". typedef bool (* oIsButtonDown)(void*, ButtonCode_t); return getvfunc(this, 15)(this, code); } @@ -296,6 +297,7 @@ class IInputSystem : public IAppSystem const char* ButtonCodeToString(ButtonCode_t code) { + if (code == ButtonCode_t::KEY_DELETE) return "-- NONE --"; // Stylizing UI::KeyBindButton (shitty method). typedef const char* (* oButtonCodeToString)(void*, ButtonCode_t); return getvfunc(this, 40)(this, code); }