mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 08:25:16 +00:00
Add emulated DJ Hero turntable controller in Settings I/O tab
This commit is contained in:
parent
ab50e5483e
commit
cd73d738e5
11 changed files with 77 additions and 9 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
LOG_CHANNEL(turntable_log);
|
||||
|
||||
usb_device_turntable::usb_device_turntable()
|
||||
usb_device_turntable::usb_device_turntable(int controller_index) : m_controller_index(controller_index)
|
||||
{
|
||||
device = UsbDescriptorNode(USB_DESCRIPTOR_DEVICE, UsbDeviceDescriptor{0x0100, 0x00, 0x00, 0x00, 0x40, 0x12BA, 0x0140, 0x0005, 0x01, 0x02, 0x00, 0x01});
|
||||
auto& config0 = device.add_node(UsbDescriptorNode(USB_DESCRIPTOR_CONFIG, UsbDeviceConfiguration{0x0029, 0x01, 0x01, 0x00, 0x80, 0x19}));
|
||||
|
|
@ -117,7 +117,7 @@ void usb_device_turntable::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpo
|
|||
// All other bufs are always 0x00
|
||||
|
||||
const auto handler = pad::get_current_handler();
|
||||
const auto& pad = handler->GetPads()[6];
|
||||
const auto& pad = handler->GetPads()[m_controller_index];
|
||||
|
||||
if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue