Epok Engine

EPOK RUNTIME

epok::RumbleService::device

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

Performs `device` as part of bounded controller motor pulses and cancellation.

Belongs to
epok::RumbleService
Header
rumble.hpp
Overloads
1

Declaration

Declaration
void device(unsigned port,bool connected,bool supported,bool probing=false, bool host_enabled=true,uint32_t identity=0)

Performs `device` as part of bounded controller motor pulses and cancellation.

ParameterTypeMeaning
portunsigned intNot documented; consult the linked header.
connectedboolNot documented; consult the linked header.
supportedboolNot documented; consult the linked header.
probingboolNot documented; consult the linked header.
host_enabledboolNot documented; consult the linked header.
identityuint32_tNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "rumble.hpp"

// Assume these named values have been initialized with valid data:
// unsigned int port
// bool connected
// bool supported
// bool probing
// bool host_enabled
// uint32_t identity

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

object.device(port, connected, supported, probing, host_enabled, identity);

Trade-offs and warnings

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

Declared in runtime/rumble.hpp:58

Related members