OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
inputHub::dpad Namespace Reference

Directional pad operation. More...

Functions

void inputs (InputNumber padUpNumber, InputNumber padDownNumber, InputNumber padLeftNumber, InputNumber padRightNumber)
 Configure directional pad buttons.
 
void cycleWorkingModeInputs (InputNumberCombination inputNumbers)
 Set a combination of inputs to cycle the working mode of the DPAD. All inputs must be activated at the same time and none of the others.
 

Detailed Description

Directional pad operation.

Function Documentation

◆ cycleWorkingModeInputs()

void inputHub::dpad::cycleWorkingModeInputs ( InputNumberCombination inputNumbers)

Set a combination of inputs to cycle the working mode of the DPAD. All inputs must be activated at the same time and none of the others.

Note
Make sure all inputs can be activated at the same time.
Parameters
inputNumbersArray of input numbers

◆ inputs()

void inputHub::dpad::inputs ( InputNumber padUpNumber,
InputNumber padDownNumber,
InputNumber padLeftNumber,
InputNumber padRightNumber )

Configure directional pad buttons.

Parameters
padUpNumberInput number assigned to the "up" direction
padDownNumberInput number assigned to the "down" direction
padLeftNumberInput number assigned to the "left" direction
padRightNumberInput number assigned to the "right" direction
Note
Just one pad button can be pressed at a time. The firmware will combine pressed buttons from different axes. If two buttons in the same axis are pressed, both will be ignored.