mirror of https://github.com/PCSX2/pcsx2.git
USB: Implement trance vibrator and buzz savestate freezing
This commit is contained in:
parent
02e0d2acde
commit
acb0829d81
|
@ -198,6 +198,11 @@ namespace usb_pad
|
|||
return "BuzzDevice";
|
||||
}
|
||||
|
||||
bool BuzzDevice::Freeze(USBDevice* dev, StateWrapper& sw) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
USBDevice* BuzzDevice::CreateDevice(SettingsInterface& si, u32 port, u32 subtype) const
|
||||
{
|
||||
BuzzState* s = new BuzzState(port);
|
||||
|
|
|
@ -84,6 +84,7 @@ namespace usb_pad
|
|||
public:
|
||||
const char* Name() const override;
|
||||
const char* TypeName() const override;
|
||||
bool Freeze(USBDevice* dev, StateWrapper& sw) const override;
|
||||
float GetBindingValue(const USBDevice* dev, u32 bind_index) const override;
|
||||
void SetBindingValue(USBDevice* dev, u32 bind_index, float value) const override;
|
||||
std::span<const InputBindingInfo> Bindings(u32 subtype) const override;
|
||||
|
|
|
@ -129,6 +129,11 @@ namespace usb_pad
|
|||
return "TranceVibrator";
|
||||
}
|
||||
|
||||
bool TranceVibratorDevice::Freeze(USBDevice* dev, StateWrapper& sw) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
USBDevice* TranceVibratorDevice::CreateDevice(SettingsInterface& si, u32 port, u32 subtype) const
|
||||
{
|
||||
TranceVibratorState* s = new TranceVibratorState(port);
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace usb_pad
|
|||
public:
|
||||
const char* Name() const override;
|
||||
const char* TypeName() const override;
|
||||
bool Freeze(USBDevice* dev, StateWrapper& sw) const override;
|
||||
float GetBindingValue(const USBDevice* dev, u32 bind_index) const override;
|
||||
void SetBindingValue(USBDevice* dev, u32 bind_index, float value) const override;
|
||||
std::span<const InputBindingInfo> Bindings(u32 subtype) const override;
|
||||
|
|
Loading…
Reference in New Issue