6 #ifndef SWIFT_MISC_INPUT_JOYSTICKBUTTON_H
7 #define SWIFT_MISC_INPUT_JOYSTICKBUTTON_H
20 namespace swift::misc::input
29 IndexDeviceName = CPropertyIndexRef::GlobalIndexCJoystickButton,
51 QString getButtonAsStringWithDeviceName()
const;
54 void setDeviceName(
const QString &deviceName) { m_deviceName = deviceName; }
57 void setButtonIndex(
int buttonIndex);
72 static QString buttonIndexToString(qint32 buttonIndex);
75 static int buttonIndexFromString(
const QString &button);
81 QString convertToQString(
bool i18n =
false)
const;
84 static const QString &buttonIndentifier()
86 static const QString bn(
"Button");
89 static constexpr
int InvalidButtonIndex = -1;
92 int m_buttonIndex = InvalidButtonIndex;
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...