Why use it
The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Performs `held` as part of the gameplay api module.
static bool held(Button button,uint32_t port)Performs `held` as part of the gameplay api module.
| Parameter | Type | Meaning |
|---|---|---|
button | Button | Value supplied for button. Keep referenced or pointed-to data valid for the complete call. |
port | uint32_t | Value 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.
#include "gameplay_api.hpp"
// Assume these named values have been initialized with valid data:
// Button button
// uint32_t port
auto result = epok::InputLibrary::held(button, port);The boolean result makes success, availability or state explicit without exceptions.
Check the return value; `false` is part of normal control flow for many PSX resource operations.
Declared in runtime/gameplay_api.hpp:136
analogPerforms `analog` as part of the gameplay api module.MethodaxisPerforms `axis` as part of the gameplay api module.MethodconnectedPerforms `connected` as part of the gameplay api module.Methodframe_pressedPerforms `frame pressed` as part of the gameplay api module.Methodframe_releasedPerforms `frame released` as part of the gameplay api module.MethodpressedPerforms `pressed` as part of the gameplay api module.MethodreleasedPerforms `released` as part of the gameplay api module.Method