Epok Engine

EPOK RUNTIME

epok::bp::api::pressed

Function · 1 overload

Function

Performs `pressed` as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp::api
Header
blueprint_api.hpp
Overloads
1

Declaration

Declaration
inline bool pressed(uint32_t button,uint32_t port)

Performs `pressed` as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
buttonuint32_tValue supplied for button. Keep referenced or pointed-to data valid for the complete call.
portuint32_tValue supplied for port. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "blueprint_api.hpp"

// Assume these named values have been initialized with valid data:
// uint32_t button
// uint32_t port

auto result = epok::bp::api::pressed(button, port);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in runtime/blueprint_api.hpp:64

Related members