Companion fix sources lists for X10 and T16 radios and improve radio conversion of sources (#7888)
* Fix Horus T16 rawsource conversions * Companion fix unknown source * Refactor rawsource conversion between radios * Better handling of Mouse Analogs for x10 * Fix unknown sources for X10 and T16 * Revert "Fix unknown sources for X10 and T16" This reverts commit dfe3909ee4f7c985ac5ec27cae3a55cb6c0a15fc. * Companion fix unknown source * Cosmetics * Cosmetics * Clear rawswitch when no match * Check forced conv successful
This commit is contained in:
@@ -252,6 +252,8 @@ class RawSource {
|
||||
bool isAvailable(const ModelData * const model = NULL, const GeneralSettings * const gs = NULL, Board::Type board = Board::BOARD_UNKNOWN) const;
|
||||
bool isSet() const { return type != SOURCE_TYPE_NONE || index != 0; }
|
||||
void clear() { type = SOURCE_TYPE_NONE; index = 0; }
|
||||
QStringList getStickList(Boards board) const;
|
||||
QStringList getSwitchList(Boards board) const;
|
||||
|
||||
bool operator == ( const RawSource & other) const {
|
||||
return (this->type == other.type) && (this->index == other.index);
|
||||
|
||||
Reference in New Issue
Block a user