rawinput: refactor midi (#795)

pure movement of code only, no functional changes
This commit is contained in:
bicarus
2026-07-11 23:59:34 -07:00
committed by GitHub
parent 47d886306e
commit a25bbdc9c9
4 changed files with 745 additions and 733 deletions
+5
View File
@@ -134,6 +134,11 @@ namespace rawinput {
static void CALLBACK input_midi_proc(HMIDIIN, UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR);
static DeviceInfo get_device_info(const std::string &device_name);
// shared by the rawinput / xinput / midi device scans when replacing a slot
// in place; keeps the existing slot's mutex pair so snapshot pointers held by
// other threads stay valid (see the definition in rawinput.cpp)
static void reuse_device_mutexes(Device &replacement, const Device &existing);
public:
HWND input_hwnd = nullptr;