Skip to content

Commit

Permalink
I hate this stupid language
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Mar 8, 2024
1 parent 48b8ab4 commit e4f3dd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game_api/script/usertypes/gui_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1150,20 +1150,20 @@ void register_usertypes(sol::state& lua)
// keys
// ZeroIndexArray<bool> 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.
Expand Down

0 comments on commit e4f3dd1

Please sign in to comment.