2 Copyright 2020 Chris Tallon
4 This file is part of VOMP.
6 VOMP is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 VOMP is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with VOMP. If not, see <https://www.gnu.org/licenses/>.
34 class InputLIRC : public Input
40 using Input::start; // Bring all start()s from base class so our start doesn't generate compile warnings
44 void InitHWCListwithDefaults() {};
45 std::string getHardwareKeyName(u8 hardwareKey);
50 static const char* myModName;
51 const char* modName() { return myModName; }
53 std::thread listenThread;
54 std::mutex threadStartProtect;
58 bool parse(const std::string& input, std::string& remoteName, std::string& remoteButton, int& repeatCount);
59 u1 TranslateHWCFixed(u8 code) { return static_cast<u1>(code); };
63 std::map<std::string, std::map<std::string, u1>> remotes;