Epok Engine

EPOK RUNTIME

epok::ControllerPad::getAdc

Method · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Method

Returns adc as part of SIO0 controller polling and DualShock configuration.

Belongs to
epok::ControllerPad
Header
controller_pad.hpp
Overloads
1

Declaration

const
Declaration
uint8_t getAdc(Pad pad,unsigned axis)const

Returns adc as part of SIO0 controller polling and DualShock configuration.

ParameterTypeMeaning
padPadNot documented; consult the linked header.
axisunsigned intNot documented; consult the linked header.

Returns: uint8_t. Consult the linked header for its meaning.

Example sketch

C++ example
#include "controller_pad.hpp"

// Assume these named values have been initialized with valid data:
// Pad pad
// unsigned int axis

epok::ControllerPad& object = /* obtain a valid instance */;

auto result = object.getAdc(pad, axis);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/controller_pad.hpp:212

Related members