Epok Engine

EPOK RUNTIME

epok::Input::poll_multitap

Function template · 1 overload

Function template

AdvancedPad indexes the four sockets of a multitap on the first physical port as 0..3 (the second physical port begins at 4).

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

Declaration

template
Declaration
template<class PadReader> void poll_multitap(const PadReader& pad)

AdvancedPad indexes the four sockets of a multitap on the first physical port as 0..3 (the second physical port begins at 4).

ParameterTypeMeaning
padconst PadReader &Value supplied for pad. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

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

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

object.poll_multitap<PadReader>(pad);

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/input.hpp:65

Related members