20 [[nodiscard]]
static std::optional<GameInstance>
find(std::string_view windowNameOverride =
"");
32 [[nodiscard]] sourcepp::math::Vec2i
getWindowPos()
const;
const GameInstance & inputHold(std::string_view input, double sec) const
Begin and end "pressing" an input in the given timespan, like holding the use key.
const GameInstance & inputBegin(std::string_view input) const
Begin "pressing" an input such as forward or left.
sourcepp::math::Vec2i getWindowSize() const
Get the window size on-screen.
const GameInstance & wait(double sec) const
Sleep on the current thread for the given number of seconds.
const GameInstance & command(std::string_view command) const
Send a command to the engine (ran as if it was entered into the console by the user).
static std::optional< GameInstance > find(std::string_view windowNameOverride="")
Find a running instance of a Source engine game.
const GameInstance & inputOnce(std::string_view input) const
Begin and end "pressing" an input in one tick, like tapping the use key.
const GameInstance & inputEnd(std::string_view input) const
End "pressing" an input such as forward or left.
std::string getWindowTitle() const
Get the human-readable window title.
sourcepp::math::Vec2i getWindowPos() const
Get the window position on-screen.