mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
mic: fix some warnings
This commit is contained in:
@@ -200,6 +200,8 @@ usb_device_mic::usb_device_mic(u32 controller_index, const std::array<u8, 7>& lo
|
||||
break;
|
||||
}
|
||||
case MicType::Logitech:
|
||||
case MicType::EyeToy:
|
||||
case MicType::PsEye:
|
||||
{
|
||||
device = UsbDescriptorNode(USB_DESCRIPTOR_DEVICE,
|
||||
UsbDeviceDescriptor {
|
||||
@@ -501,21 +503,6 @@ usb_device_mic::usb_device_mic(u32 controller_index, const std::array<u8, 7>& lo
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<usb_device> usb_device_mic::make_singstar(u32 controller_index, const std::array<u8, 7>& location)
|
||||
{
|
||||
return std::make_shared<usb_device_mic>(controller_index, location, MicType::SingStar);
|
||||
}
|
||||
|
||||
std::shared_ptr<usb_device> usb_device_mic::make_logitech(u32 controller_index, const std::array<u8, 7>& location)
|
||||
{
|
||||
return std::make_shared<usb_device_mic>(controller_index, location, MicType::Logitech);
|
||||
}
|
||||
|
||||
std::shared_ptr<usb_device> usb_device_mic::make_rocksmith(u32 controller_index, const std::array<u8, 7>& location)
|
||||
{
|
||||
return std::make_shared<usb_device_mic>(controller_index, location, MicType::Rocksmith);
|
||||
}
|
||||
|
||||
u16 usb_device_mic::get_num_emu_devices()
|
||||
{
|
||||
return 1;
|
||||
|
||||
@@ -25,10 +25,7 @@ class usb_device_mic : public usb_device_emulated
|
||||
{
|
||||
public:
|
||||
usb_device_mic(u32 controller_index, const std::array<u8, 7>& location, MicType mic_type);
|
||||
|
||||
static std::shared_ptr<usb_device> make_singstar(u32 controller_index, const std::array<u8, 7>& location);
|
||||
static std::shared_ptr<usb_device> make_logitech(u32 controller_index, const std::array<u8, 7>& location);
|
||||
static std::shared_ptr<usb_device> make_rocksmith(u32 controller_index, const std::array<u8, 7>& location);
|
||||
|
||||
static u16 get_num_emu_devices();
|
||||
|
||||
void control_transfer(u8 bmRequestType, u8 bRequest, u16 wValue, u16 wIndex, u16 wLength, u32 buf_size, u8* buf, UsbTransfer* transfer) override;
|
||||
|
||||
Reference in New Issue
Block a user