2 Copyright 2004-2020 Chris Tallon; 2012 Marten Richter
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/>.
31 class InputLinux : public Input
37 std::string getHardwareKeyName(u8 hardwareKey);
38 const char* getHardCodedHardwareKeyNamesForVompKey(u1 vompKey);
39 void EnterLearningMode(u1 vompKey);
45 static constexpr const char* myModName = "InputLinux";
46 const char* modName() { return myModName; }
51 void InitHWCListwithDefaults();
52 u1 TranslateHWCFixed(u8 code);
54 std::vector<int> devices;
56 std::thread listenThread;
57 std::mutex threadStartProtect;
59 bool listenLoopStop{};
65 // FIXME remove all u8 for hwc