VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
ButtonPress.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace VoltMod
6{
7
8/**
9 * @brief A `Button` press inside a custom HUD layout.
10 *
11 * Raised on the game frame after it arrives, not from inside inbound message processing, so a
12 * handler may write to the layout or any other entity.
13 */
15{
16 int Slot = -1; ///< the client that pressed, whatever pawn it is watching
17 std::string ButtonId; ///< the Button's `id` attribute; client-controlled text
18};
19
20} // namespace VoltMod
A Button press inside a custom HUD layout.
std::string ButtonId
the Button's id attribute; client-controlled text
int Slot
the client that pressed, whatever pawn it is watching