mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 15:50:42 -07:00
rawinput: refactor midi (#795)
pure movement of code only, no functional changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user