Epok Engine

EPOK RUNTIME

epok::Input::poll

Function template · 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.

Function template

Polls poll as part of controller sampling and simulation-tick input edges.

Belongs to
epok::Input
Header
input.hpp
Overloads
1

Declaration

template
Declaration
template<class PadReader> void poll(const PadReader& pad,unsigned second_port=1)

Polls poll as part of controller sampling and simulation-tick input edges.

ParameterTypeMeaning
padconst PadReader &Not documented; consult the linked header.
second_portunsigned intNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "input.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// PadReader

// Assume these named values have been initialized with valid data:
// const PadReader & pad
// unsigned int second_port

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

object.poll<PadReader>(pad, second_port);

Trade-offs and warnings

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

Declared in runtime/input.hpp:46

Related members