API Documentation
Loading...
Searching...
No Matches
JoystickSettings Class Reference

Settings that define how a Joystick will behave. More...

#include <Joystick.h>

Inheritance diagram for JoystickSettings:
[legend]
Collaboration diagram for JoystickSettings:
[legend]

Public Types

enum  SensitivityMode { e_linear , e_exponential , e_sinusoidal }
 

Public Member Functions

void getINI (INIFactory &factory) override
 
 JoystickSettings ()
 
bool operator== (const JoystickSettings &settings) const
 
void resetToDefaults ()
 
- Public Member Functions inherited from INIInterface
virtual void finishReadingINI (INIFactory &)
 
 INIInterface (const File &default_ini)
 
virtual void prepareForINI (INIFactory &)
 
virtual bool readINIOptions ()
 
virtual bool readINIOptions (File &ini_file)
 
virtual bool saveINIOptions (bool multithead=false)
 
virtual bool saveINIOptions (File &ini_file, bool multithead=false)
 
void setDefaultINIFile (const File &file)
 
virtual void writeToLog (const String &title, ProgressInfo *log, uint01 log_level=2U)
 
virtual void writeToLog (ProgressInfo *log, uint01 log_level=2U)
 
virtual ~INIInterface ()
 

Public Attributes

fltp04 deadzone = 0.05f
 
fltp04 sensitivity = 1.0f
 
SensitivityMode sensitivity_mode = SensitivityMode::e_exponential
 
bool uses_buttons = false
 
bool uses_knob = true
 

Additional Inherited Members

- Protected Attributes inherited from INIInterface
File m_default_ini
 

Detailed Description

Settings that define how a Joystick will behave.


Member Enumeration Documentation

◆ SensitivityMode

Enumerator
e_linear 
e_exponential 
e_sinusoidal 

Constructor & Destructor Documentation

◆ JoystickSettings()

Member Function Documentation

◆ getINI()

void getINI ( INIFactory & factory)
overridevirtual

Implements INIInterface.

◆ operator==()

bool operator== ( const JoystickSettings & settings) const
inline

◆ resetToDefaults()

void resetToDefaults ( )

Member Data Documentation

◆ deadzone

fltp04 deadzone = 0.05f

◆ sensitivity

fltp04 sensitivity = 1.0f

◆ sensitivity_mode

◆ uses_buttons

bool uses_buttons = false

◆ uses_knob

bool uses_knob = true

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