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

#include <InputTranslator.h>

Public Types

enum class  Device {
  Keyboard , Button , Axis , MidiNote ,
  MidiControl , MidiPitchBend
}
 
enum class  Direction { None , Up , Down }
 

Public Member Functions

auto getMidi () const -> QVariant
 
auto operator<=> (const Key &key) const -> std::weak_ordering
 
auto operator== (const Key &key) const -> bool
 
auto operator!= (const Key &key) const -> bool
 

Properties

QVariant gamepad = QVariant::fromValue(nullptr)
 The gamepad this key belongs to. Null if the key is from the keyboard.
 
QVariant midi
 
Device device
 
quint32 code
 
Direction direction {}
 

Friends

auto operator>> (QDataStream &stream, Key &key) -> QDataStream &
 
auto operator<< (QDataStream &stream, const Key &key) -> QDataStream &
 

Member Enumeration Documentation

◆ Device

enum class input::Key::Device
strong
Enumerator
Keyboard 
Button 
Axis 
MidiNote 
MidiControl 
MidiPitchBend 

◆ Direction

enum class input::Key::Direction
strong
Enumerator
None 
Up 
Down 

Member Function Documentation

◆ getMidi()

auto input::Key::getMidi ( ) const -> QVariant

◆ operator!=()

auto input::Key::operator!= ( const Key &  key) const -> bool

◆ operator<=>()

auto input::Key::operator<=> ( const Key &  key) const -> std::weak_ordering

◆ operator==()

auto input::Key::operator== ( const Key &  key) const -> bool

Friends And Related Symbol Documentation

◆ operator<<

auto operator<< ( QDataStream &  stream,
const Key &  key 
) -> QDataStream&
friend

◆ operator>>

auto operator>> ( QDataStream &  stream,
Key &  key 
) -> QDataStream&
friend

Property Documentation

◆ code

quint32 input::Key::code

◆ device

Device input::Key::device

◆ direction

Direction input::Key::direction {}

◆ gamepad

QVariant input::Key::gamepad = QVariant::fromValue(nullptr)

The gamepad this key belongs to. Null if the key is from the keyboard.

See also
input::Gamepad

◆ midi

QVariant input::Key::midi
read

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