RhythmGame 1.4.3
Loading...
Searching...
No Matches
Namespaces | Macros
InputAttached.cpp File Reference
#include "InputAttached.h"
#include <spdlog/spdlog.h>
#include <spdlog/stopwatch.h>
Include dependency graph for InputAttached.cpp:

Namespaces

namespace  qml_components
 Contains classes that wrap some functionality for use in QML.
 

Macros

#define CASE(key, capital)
 
#define CASE(key, capital)
 
#define TICKED(name)
 

Macro Definition Documentation

◆ CASE [1/2]

#define CASE (   key,
  capital 
)
Value:
case input::BmsKey::capital: \
old = keyStates[static_cast<int>(input::BmsKey::capital)]; \
keyStates[static_cast<int>(input::BmsKey::capital)] = true; \
if (!old) { \
emit key##Changed(); \
} \
emit key##Pressed(time); \
break;

◆ CASE [2/2]

#define CASE (   key,
  capital 
)
Value:
case input::BmsKey::capital: \
old = keyStates[static_cast<int>(input::BmsKey::capital)]; \
keyStates[static_cast<int>(input::BmsKey::capital)] = false; \
if (old) { \
emit key##Changed(); \
} \
if (isEnabled()) { \
emit key##Released(time); \
} \
break;

◆ TICKED

#define TICKED (   name)
Value:
connect(inputSignalProvider, \
&input::InputTranslator::name##Ticked, \
this, \
[this](int tickNumber, input::InputTranslator::TickType type) { \
if (isEnabled()) { \
emit name##Ticked(tickNumber, type); \
} \
})
Type type
Definition BmsNotesData.cpp:33
TickType
Definition InputTranslator.h:230