54 void AddButton(
int in_button, QString in_keystr,
int in_chord = -1)
56 buttonMapType new_button = { in_button, std::move(in_keystr), in_chord };
60 void AddAxis(
int in_axis,
int in_from,
int in_to, QString in_keystr)
62 axisMapType new_axis = { in_axis, in_from, in_to, std::move(in_keystr)};
93 bool Init(QString &config_file);
97 void EmitKey(
const QString& code);
Holds the buttonMapType and axisMapType structs which map actions to events.
const axis_map_t & axisMap() const
std::vector< axisMapType > axis_map_t
void AddButton(int in_button, QString in_keystr, int in_chord=-1)
const button_map_t & buttonMap() const
std::vector< buttonMapType > button_map_t
void AddAxis(int in_axis, int in_from, int in_to, QString in_keystr)
This is a wrapper around QThread that does several additional things.