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
5
namespace
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
*/
14
struct
ButtonPress
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
VoltMod
Definition
Options.hpp:13
VoltMod::ButtonPress
A Button press inside a custom HUD layout.
Definition
ButtonPress.hpp:15
VoltMod::ButtonPress::ButtonId
std::string ButtonId
the Button's id attribute; client-controlled text
Definition
ButtonPress.hpp:17
VoltMod::ButtonPress::Slot
int Slot
the client that pressed, whatever pawn it is watching
Definition
ButtonPress.hpp:16
include
VoltMod
Ui
ButtonPress.hpp
Generated by
1.9.8