Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
@@ -28,6 +28,7 @@ enum ButtonAnalogType {
|
||||
BAT_MIDI_CTRL_ONOFF = 14,
|
||||
BAT_MIDI_PITCH_DOWN = 15,
|
||||
BAT_MIDI_PITCH_UP = 16,
|
||||
BAT_ANY = 17,
|
||||
};
|
||||
|
||||
extern const char *ButtonAnalogTypeStr[];
|
||||
@@ -45,8 +46,10 @@ private:
|
||||
|
||||
GameAPI::Buttons::State last_state = GameAPI::Buttons::BUTTON_NOT_PRESSED;
|
||||
float last_velocity = 0.f;
|
||||
unsigned short velocity_threshold = 0;
|
||||
|
||||
std::string getVKeyString();
|
||||
std::string getMidiNoteString();
|
||||
|
||||
public:
|
||||
|
||||
@@ -159,6 +162,17 @@ public:
|
||||
this->last_velocity = last_velocity;
|
||||
}
|
||||
|
||||
inline unsigned short getVelocityThreshold() const {
|
||||
return this->velocity_threshold;
|
||||
}
|
||||
|
||||
inline void setVelocityThreshold(unsigned short velocity_threshold) {
|
||||
this->velocity_threshold = velocity_threshold;
|
||||
}
|
||||
|
||||
void getMidiVKey(int& channel, int& index);
|
||||
void setMidiVKey(rawinput::RawInputManager* manager, bool is_note, int channel, int index);
|
||||
|
||||
/*
|
||||
* Map hat switch float value from [0-1] to directions.
|
||||
* Buffer must be sized 3 or bigger.
|
||||
|
||||
Reference in New Issue
Block a user