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

uint64_t state = 0ULL
 Input bitmap.
 
uint64_t mask = ~(0ULL)
 Input bitmask.
 
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 48 of file InternalTypes.hpp.

Constructor & Destructor Documentation

◆ FakeInput()

FakeInput::FakeInput ( )
inline

Definition at line 94 of file InternalTypes.hpp.

◆ ~FakeInput()

FakeInput::~FakeInput ( )
inline

Definition at line 95 of file InternalTypes.hpp.

Member Function Documentation

◆ clear()

void FakeInput::clear ( )
inline

Simulate no input.

Definition at line 87 of file InternalTypes.hpp.

◆ press()

void FakeInput::press ( uint8_t n)
inline

Simulate a button press.

Parameters
nInput number

Definition at line 66 of file InternalTypes.hpp.

◆ release()

void FakeInput::release ( uint8_t n)
inline

Simulate a button release.

Parameters
nInput number

Definition at line 77 of file InternalTypes.hpp.

Member Data Documentation

◆ leftAxis

uint8_t FakeInput::leftAxis = 0

Left axis position.

Definition at line 55 of file InternalTypes.hpp.

◆ mask

uint64_t FakeInput::mask = ~(0ULL)

Input bitmask.

Definition at line 53 of file InternalTypes.hpp.

◆ recalibrationRequestCount

size_t FakeInput::recalibrationRequestCount = 0

Count of times axis recalibration was asked.

Definition at line 59 of file InternalTypes.hpp.

◆ rightAxis

uint8_t FakeInput::rightAxis = 0

Right axis position.

Definition at line 57 of file InternalTypes.hpp.

◆ state

uint64_t FakeInput::state = 0ULL

Input bitmap.

Definition at line 51 of file InternalTypes.hpp.


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