From e4f3dd188ca3618621f5a98dacdfeb6ca2da1b87 Mon Sep 17 00:00:00 2001 From: Dregu Date: Fri, 8 Mar 2024 16:09:15 +0200 Subject: [PATCH] I hate this stupid language --- src/game_api/script/usertypes/gui_lua.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game_api/script/usertypes/gui_lua.cpp b/src/game_api/script/usertypes/gui_lua.cpp index 81a83aa55..5ca776824 100644 --- a/src/game_api/script/usertypes/gui_lua.cpp +++ b/src/game_api/script/usertypes/gui_lua.cpp @@ -1150,20 +1150,20 @@ void register_usertypes(sol::state& lua) // keys // ZeroIndexArray of currently held keys, indexed by KEY <= 0xFF // keydown - // Returns true if key or chord (e.g `KEY.X \| KEY.OL_MOD_CTRL`) is down. + // Returns true if key or chord is down. // bool keydown(KEY keychord) // bool keydown(char key) // keypressed - // Returns true if key or chord (e.g `KEY.X \| KEY.OL_MOD_CTRL`) was pressed this GUIFRAME. + // Returns true if key or chord was pressed this GUIFRAME. // bool keypressed(KEY keychord, bool repeat = false) // bool keypressed(char key, bool repeat = false) // keyreleased - // Returns true if key or chord (e.g `KEY.X \| KEY.OL_MOD_CTRL`) was released this GUIFRAME. + // Returns true if key or chord was released this GUIFRAME. // bool keyreleased(KEY keychord) // bool keyreleased(char key) // modifierdown // bool modifierdown(KEY keychord) - // Returns true if modifiers in chord (e.g. `KEY.OL_MOD_CTRL \| KEY.OL_MOD_SHIFT \| KEY.OL_MOD_ALT`) are down, ignores other keys in chord. + // Returns true if modifiers in chord are down, ignores other keys in chord. // gamepads // Gamepad gamepads(int index) // This is the XInput index 1..4, might not be the same as the player slot.