]> git.sesse.net Git - nageru/blobdiff - nageru/midi_mapper.h
Add infrastructure for MIDI lights that are controllers instead of notes.
[nageru] / nageru / midi_mapper.h
index 8fa0bf997b7255f56a52a9e48c31e78df1d94e04..9630780dfaee51c3e63759daeb7d7c4e79666c85 100644 (file)
 #include <map>
 #include <memory>
 #include <mutex>
-#include <set>
 #include <string>
 #include <thread>
 
 #include "defs.h"
-#include "midi_device.h"
+#include "shared/midi_device.h"
 
 class MIDIMappingProto;
 
@@ -110,7 +109,7 @@ private:
        void update_highlights();
 
        void update_lights_lock_held();
-       void activate_lights_all_buses(int field_number, std::set<unsigned> *active_lights);
+       void activate_lights_all_buses(int field_number, std::map<MIDIDevice::LightKey, uint8_t> *active_lights);
 
        std::atomic<bool> should_quit{false};
        int should_quit_fd;