mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Support for Namco GCon3 gun (#8757)
This gun now works (passes calibration) in Time Crisis 4.
This commit is contained in:
parent
27e3317449
commit
ab0df0a0f5
@ -198,6 +198,9 @@ usb_handler_thread::usb_handler_thread()
|
||||
check_device(0x054C, 0x0001, 0x0041, "buzzer1");
|
||||
check_device(0x054C, 0x0042, 0x0042, "buzzer2");
|
||||
check_device(0x046D, 0xC220, 0xC220, "buzzer9");
|
||||
|
||||
// GCon3 Gun
|
||||
check_device(0x0B9A, 0x0800, 0x0800, "guncon3");
|
||||
}
|
||||
|
||||
libusb_free_device_list(list, 1);
|
||||
@ -571,7 +574,19 @@ error_code sys_usbd_get_descriptor(u32 handle, u32 device_handle, vm::ptr<void>
|
||||
// This function is used for psp(cellUsbPspcm), dongles in ps3 arcade cabinets(PS3A-USJ), ps2 cam(eyetoy), generic usb camera?(sample_usb2cam)
|
||||
error_code sys_usbd_register_ldd(u32 handle, vm::ptr<char> s_product, u16 slen_product)
|
||||
{
|
||||
sys_usbd.todo("sys_usbd_register_ldd(handle=0x%x, s_product=%s, slen_product=0x%x)", handle, s_product, slen_product);
|
||||
// slightly hacky way of getting Namco GCon3 gun to work.
|
||||
// The register_ldd appears to be a more promiscuous mode function, where all device 'inserts' would be presented to the cellUsbd for Probing.
|
||||
// Unsure how many more devices might need similar treatment (i.e. just a compare and force VID/PID add), or if it's worth adding a full promiscuous
|
||||
// capability
|
||||
if (strcmp(s_product.get_ptr(), "guncon3") == 0)
|
||||
{
|
||||
sys_usbd.warning("sys_usbd_register_ldd(handle=0x%x, s_product=%s, slen_product=0x%x) -> Redirecting to sys_usbd_register_extra_ldd", handle, s_product, slen_product);
|
||||
sys_usbd_register_extra_ldd(handle, s_product, slen_product, 0x0B9A, 0x0800, 0x0800);
|
||||
}
|
||||
else
|
||||
{
|
||||
sys_usbd.todo("sys_usbd_register_ldd(handle=0x%x, s_product=%s, slen_product=0x%x)", handle, s_product, slen_product);
|
||||
}
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user