OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
FakeInput Struct Reference

Fake input specification used for testing. More...

#include <InternalTypes.hpp>

Public Member Functions

void press (uint8_t n)
 Simulate a button press.
 
void release (uint8_t n)
 Simulate a button release.
 
void clear ()
 Simulate no input.
 

Public Attributes

uint128_t state {}
 Input bitmap.
 
uint128_t mask {}
 Input mask.
 
uint8_t leftAxis = 0
 Left axis position.
 
uint8_t rightAxis = 0
 Right axis position.
 
size_t recalibrationRequestCount = 0
 Count of times axis recalibration was asked.
 

Detailed Description

Fake input specification used for testing.

Definition at line 43 of file InternalTypes.hpp.

Member Function Documentation

◆ clear()

void FakeInput::clear ( )
inline

Simulate no input.

Definition at line 80 of file InternalTypes.hpp.

◆ press()

void FakeInput::press ( uint8_t n)
inline

Simulate a button press.

Parameters
nInput number

Definition at line 61 of file InternalTypes.hpp.

◆ release()

void FakeInput::release ( uint8_t n)
inline

Simulate a button release.

Parameters
nInput number

Definition at line 71 of file InternalTypes.hpp.

Member Data Documentation

◆ leftAxis

uint8_t FakeInput::leftAxis = 0

Left axis position.

Definition at line 50 of file InternalTypes.hpp.

◆ mask

uint128_t FakeInput::mask {}

Input mask.

Definition at line 48 of file InternalTypes.hpp.

◆ recalibrationRequestCount

size_t FakeInput::recalibrationRequestCount = 0

Count of times axis recalibration was asked.

Definition at line 54 of file InternalTypes.hpp.

◆ rightAxis

uint8_t FakeInput::rightAxis = 0

Right axis position.

Definition at line 52 of file InternalTypes.hpp.

◆ state

uint128_t FakeInput::state {}

Input bitmap.

Definition at line 46 of file InternalTypes.hpp.


The documentation for this struct was generated from the following file: