VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::ButtonPresses Class Reference

The FilterMessage hook for every plugin: custom HUD button presses, raised on the frame after they arrive. Game thread only. More...

#include <ButtonPresses.hpp>

Public Member Functions

 ButtonPresses (const Bindings &bindings, const EngineInterfaces &engine, PluginRegistry &registry)
 
 ButtonPresses (const ButtonPresses &)=delete
 
ButtonPresses & operator= (const ButtonPresses &)=delete
 
void OnFrame ()
 

Detailed Description

The FilterMessage hook for every plugin: custom HUD button presses, raised on the frame after they arrive. Game thread only.

Definition at line 21 of file ButtonPresses.hpp.

Constructor & Destructor Documentation

◆ ButtonPresses() [1/2]

VoltMod::ButtonPresses::ButtonPresses ( const Bindings &  bindings,
const EngineInterfaces &  engine,
PluginRegistry &  registry 
)

A missing message registry hooks nothing. bindings and registry must outlive this.

Definition at line 26 of file ButtonPresses.cpp.

References VoltMod::ReadFile(), and VoltMod::Log::Warn().

◆ ButtonPresses() [2/2]

VoltMod::ButtonPresses::ButtonPresses ( const ButtonPresses &  )
delete

Member Function Documentation

◆ OnFrame()

void VoltMod::ButtonPresses::OnFrame ( )

Raise the presses that arrived since the last frame.

Definition at line 65 of file ButtonPresses.cpp.

References VoltMod::PluginRegistry::RaiseButtonPress(), and VoltMod::ReadFile().

◆ operator=()

ButtonPresses & VoltMod::ButtonPresses::operator= ( const ButtonPresses &  )
delete

References VoltMod::Slot.


The documentation for this class was generated from the following files: