Connection#
Defined in Core.hpp. Network latency queries and game-level button injection.
GetClientPing#
Returns the client-side network ping in milliseconds. Returns 0 if the connection component is not available.
GetServerPing#
Returns the server-side network ping in milliseconds. Returns 0 if the connection component is not available.
PressGameButton#
Presses a game-level button. The button remains pressed until ReleaseGameButton() is called with the same bit.
| Parameter | Type | Description |
|---|---|---|
bit |
uint32_t |
Button bit from GameButton namespace |
Warning
Always pair PressGameButton with ReleaseGameButton. Forgetting to release will keep the button held indefinitely.
ReleaseGameButton#
Releases a previously pressed game button.
| Parameter | Type | Description |
|---|---|---|
bit |
uint32_t |
Button bit from GameButton namespace |
GameButton Constants#
See Constants — Game Buttons for the full table of button bits.