Update to spice2x-25-04-25 (pre-apply)

> broken commit
This commit is contained in:
[ ]
2025-05-07 00:25:31 +09:00
parent 04dee88276
commit c94de456b5
543 changed files with 78491 additions and 91698 deletions
+22 -1
View File
@@ -18,6 +18,16 @@ namespace rawinput {
extern uint8_t HID_LIGHT_BRIGHTNESS;
extern bool ENABLE_SMX_STAGE;
extern bool ENABLE_SMX_DEDICAB;
extern int TOUCHSCREEN_RANGE_X;
extern int TOUCHSCREEN_RANGE_Y;
extern bool DUMP_HID_DEVICES_TO_LOG;
extern uint32_t MIDI_NOTE_SUSTAIN;
struct DeviceCallback {
void *data;
std::function<void(void*, Device*)> f;
@@ -27,6 +37,15 @@ namespace rawinput {
std::function<void(void*, Device*, uint8_t cmd, uint8_t ch, uint8_t b1, uint8_t b2)> f;
};
enum class MidiNoteAlgorithm {
LEGACY,
V2,
V2_DRUM
};
rawinput::MidiNoteAlgorithm get_midi_algorithm();
void set_midi_algorithm(rawinput::MidiNoteAlgorithm new_algo);
class RawInputManager {
private:
@@ -51,6 +70,8 @@ namespace rawinput {
void devices_reload();
void devices_scan_rawinput(RAWINPUTDEVICELIST *device, bool log = true);
void devices_scan_piuio();
void devices_scan_smxstage();
void devices_scan_smxdedicab();
void devices_destruct();
void devices_destruct(Device *device, bool log = true);
void flush_start();
@@ -114,7 +135,7 @@ namespace rawinput {
if (device.type == MIDI) {
device.midiInfo->freeze = freeze;
if (!freeze) {
for (unsigned short index = 0; index < 16 * 128; index++) {
for (unsigned short index = 0; index < device.midiInfo->states.size(); index++) {
device.midiInfo->states[index] = false;
}
}