EPOK RUNTIME
epok::ControllerPad
Class
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.
Class
Class declared by the controller-pad module for SIO0 controller polling and DualShock configuration.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "controller_pad.hpp"
epok::ControllerPad& value = /* obtain a valid instance from your game */;Nested types
ButtonType alias declared by the controller-pad module for SIO0 controller polling and DualShock configuration.Type aliasPadType alias declared by the controller-pad module for SIO0 controller polling and DualShock configuration.Type aliasTransferTraceResult: 0 okay, 1 bus owned, 2 RX timeout, 3 ACK timeout, 4 absent ID, 5 oversized reply, 6 invalid ID-high byte.StructPublic methods
getAdcReturns adc as part of SIO0 controller polling and DualShock configuration.MethodgetPadTypeReturns pad type as part of SIO0 controller polling and DualShock configuration.MethodinitializePerforms `initialize` as part of SIO0 controller polling and DualShock configuration.MethodisButtonPressedReports whether button pressed as part of SIO0 controller polling and DualShock configuration.MethodisPadConnectedReports whether pad connected as part of SIO0 controller polling and DualShock configuration.MethodrumbleProbingPerforms `rumble probing` as part of SIO0 controller polling and DualShock configuration.MethodrumbleSupportedPerforms `rumble supported` as part of SIO0 controller polling and DualShock configuration.MethodsetRumbleSets rumble as part of SIO0 controller polling and DualShock configuration.MethodstopRumbleStops rumble as part of SIO0 controller polling and DualShock configuration.MethodsynchronizeA long card transaction or blocked game frame may let the controller's own watchdog forget its configuration.MethodtracePerforms `trace` as part of SIO0 controller polling and DualShock configuration.Method