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

Input Hub service. More...

#include <InternalServices.hpp>

Public Member Functions

virtual bool getSecurityLock ()
 Get the status of the security lock.
 
virtual uint8_t getBitePoint ()
 Get the clutch bite point.
 
virtual ClutchWorkingMode getClutchWorkingMode ()
 Get the current clutch working mode.
 
virtual AltButtonsWorkingMode getAltButtonsWorkingMode ()
 Get the current working mode of ALT buttons.
 
virtual DPadWorkingMode getDPadWorkingMode ()
 Get the current working mode of the directional pad.
 
virtual void setBitePoint (uint8_t value, bool save=true)
 Set the clutch bite point.
 
virtual void setClutchWorkingMode (ClutchWorkingMode mode, bool save=true)
 Set the clutch working mode.
 
virtual void setAltButtonsWorkingMode (AltButtonsWorkingMode mode, bool save=true)
 Set the working mode of ALT buttons.
 
virtual void setDPadWorkingMode (DPadWorkingMode mode, bool save=true)
 Set the directional pad working mode.
 
virtual void setSecurityLock (bool value, bool save=true)
 Set the status of the security lock.
 

Additional Inherited Members

- Static Public Member Functions inherited from DependencyManager< InputHubService >
static InputHubServicecall ()
 Get the service provider implementing the service.
 
static void inject (_Args &&...__args)
 Inject a service provider.
 
static void inject (InputHubService *provider)
 Inject a service provider.
 
static void reset ()
 Remove the injected service provider (for testing)
 

Detailed Description

Input Hub service.

Definition at line 234 of file InternalServices.hpp.

Member Function Documentation

◆ getAltButtonsWorkingMode()

virtual AltButtonsWorkingMode InputHubService::getAltButtonsWorkingMode ( )
inlinevirtual

Get the current working mode of ALT buttons.

Returns
AltButtonsWorkingMode Working mode

Definition at line 273 of file InternalServices.hpp.

◆ getBitePoint()

virtual uint8_t InputHubService::getBitePoint ( )
inlinevirtual

Get the clutch bite point.

Returns
uint8_t Bite point

Definition at line 253 of file InternalServices.hpp.

◆ getClutchWorkingMode()

virtual ClutchWorkingMode InputHubService::getClutchWorkingMode ( )
inlinevirtual

Get the current clutch working mode.

Returns
ClutchWorkingMode Working mode

Definition at line 263 of file InternalServices.hpp.

◆ getDPadWorkingMode()

virtual DPadWorkingMode InputHubService::getDPadWorkingMode ( )
inlinevirtual

Get the current working mode of the directional pad.

Returns
DPadWorkingMode Working mode

Definition at line 283 of file InternalServices.hpp.

◆ getSecurityLock()

virtual bool InputHubService::getSecurityLock ( )
inlinevirtual

Get the status of the security lock.

Returns
true If locked
false If not locked

Definition at line 243 of file InternalServices.hpp.

◆ setAltButtonsWorkingMode()

virtual void InputHubService::setAltButtonsWorkingMode ( AltButtonsWorkingMode mode,
bool save = true )
inlinevirtual

Set the working mode of ALT buttons.

Parameters
modeWorking mode
saveTrue to save to flash memory

Definition at line 314 of file InternalServices.hpp.

◆ setBitePoint()

virtual void InputHubService::setBitePoint ( uint8_t value,
bool save = true )
inlinevirtual

Set the clutch bite point.

Parameters
valueBite point
saveTrue to save to flash memory

Definition at line 294 of file InternalServices.hpp.

◆ setClutchWorkingMode()

virtual void InputHubService::setClutchWorkingMode ( ClutchWorkingMode mode,
bool save = true )
inlinevirtual

Set the clutch working mode.

Parameters
modeWorking mode
saveTrue to save to flash memory

Definition at line 304 of file InternalServices.hpp.

◆ setDPadWorkingMode()

virtual void InputHubService::setDPadWorkingMode ( DPadWorkingMode mode,
bool save = true )
inlinevirtual

Set the directional pad working mode.

Parameters
modeWorking mode
saveTrue to save to flash memory

Definition at line 324 of file InternalServices.hpp.

◆ setSecurityLock()

virtual void InputHubService::setSecurityLock ( bool value,
bool save = true )
inlinevirtual

Set the status of the security lock.

Parameters
valueTrue to activate, false to deactivate
saveTrue to save to flash memory

Definition at line 334 of file InternalServices.hpp.


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