Why use it
It provides direct, allocation-conscious access to the gameplay api module. No exception-based error path is implied by the signature.
EPOK RUNTIME
Method · 1 overload
Performs `axis` as part of the gameplay api module.
static InputAxisSample axis(Axis axis,uint32_t port)Performs `axis` as part of the gameplay api module.
| Parameter | Type | Meaning |
|---|---|---|
axis | Axis | Value supplied for axis. 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: InputAxisSample. 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:
// Axis axis
// uint32_t port
auto result = epok::InputLibrary::axis(axis, port);It provides direct, allocation-conscious access to the gameplay api module. No exception-based error path is implied by the signature.
Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.
Declared in runtime/gameplay_api.hpp:146
analogPerforms `analog` 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