RhythmGame 1.4.3
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Properties | List of all members
input::AnalogAxisConfig Class Reference

#include <InputTranslator.h>

Inheritance diagram for input::AnalogAxisConfig:
Inheritance graph
[legend]
Collaboration diagram for input::AnalogAxisConfig:
Collaboration graph
[legend]

Public Types

enum  ScratchAlgorithm { ScratchAlgorithmAnalog , ScratchAlgorithmClassic }
 The algorithm used to interpret axis movement as scratch movement. More...
 

Signals

void triggerThresholdChanged ()
 
void releaseThresholdChanged ()
 
void timeoutChanged ()
 
void scratchAlgorithmChanged ()
 

Public Member Functions

auto getTriggerThreshold () const -> double
 
void setTriggerThreshold (double value)
 
auto getReleaseThreshold () const -> double
 
void setReleaseThreshold (double value)
 
auto getTimeout () const -> uint
 
void setTimeout (uint value)
 
auto getScratchAlgorithm () const -> ScratchAlgorithm
 
void setScratchAlgorithm (ScratchAlgorithm value)
 
 AnalogAxisConfig (QObject *parent=nullptr)
 

Properties

double triggerThreshold = 0.008
 The threshold above which scratch movement is triggered.
 
double releaseThreshold = 0.004
 The threshold that is needed to sustain scratch movement.
 
uint timeout = 100
 The time in milliseconds after which scratch movement is automatically released, unless releaseThreshold is exceeded.
 
ScratchAlgorithm scratchAlgorithm
 The algorithm used to interpret axis movement as scratch movement.
 

Member Enumeration Documentation

◆ ScratchAlgorithm

The algorithm used to interpret axis movement as scratch movement.

Enumerator
ScratchAlgorithmAnalog 

Beatoraja style.

ScratchAlgorithmClassic 

LR2 style.

Constructor & Destructor Documentation

◆ AnalogAxisConfig()

input::AnalogAxisConfig::AnalogAxisConfig ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ getReleaseThreshold()

auto input::AnalogAxisConfig::getReleaseThreshold ( ) const -> double

◆ getScratchAlgorithm()

auto input::AnalogAxisConfig::getScratchAlgorithm ( ) const -> ScratchAlgorithm

◆ getTimeout()

auto input::AnalogAxisConfig::getTimeout ( ) const -> uint

◆ getTriggerThreshold()

auto input::AnalogAxisConfig::getTriggerThreshold ( ) const -> double

◆ releaseThresholdChanged

void input::AnalogAxisConfig::releaseThresholdChanged ( )
signal

◆ scratchAlgorithmChanged

void input::AnalogAxisConfig::scratchAlgorithmChanged ( )
signal

◆ setReleaseThreshold()

void input::AnalogAxisConfig::setReleaseThreshold ( double  value)

◆ setScratchAlgorithm()

void input::AnalogAxisConfig::setScratchAlgorithm ( ScratchAlgorithm  value)

◆ setTimeout()

void input::AnalogAxisConfig::setTimeout ( uint  value)

◆ setTriggerThreshold()

void input::AnalogAxisConfig::setTriggerThreshold ( double  value)

◆ timeoutChanged

void input::AnalogAxisConfig::timeoutChanged ( )
signal

◆ triggerThresholdChanged

void input::AnalogAxisConfig::triggerThresholdChanged ( )
signal

Property Documentation

◆ releaseThreshold

double input::AnalogAxisConfig::releaseThreshold = 0.004
read

The threshold that is needed to sustain scratch movement.

This is a value between 0 and 1. Default is 0.004.

◆ scratchAlgorithm

ScratchAlgorithm input::AnalogAxisConfig::scratchAlgorithm
read

The algorithm used to interpret axis movement as scratch movement.

◆ timeout

uint input::AnalogAxisConfig::timeout = 100
readwrite

The time in milliseconds after which scratch movement is automatically released, unless releaseThreshold is exceeded.

Default is 100.

◆ triggerThreshold

double input::AnalogAxisConfig::triggerThreshold = 0.008
read

The threshold above which scratch movement is triggered.

This is a value between 0 and 1. Default is 0.008.


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