Why use it
The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Performs `analog` as part of the gameplay api module.
static bool analog(uint32_t port)Performs `analog` as part of the gameplay api module.
| Parameter | Type | Meaning |
|---|---|---|
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:
// uint32_t port
auto result = epok::InputLibrary::analog(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:134
axisPerforms `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.MethodheldPerforms `held` 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