mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Adds VID/PID for Guitar Hero guitar & drum
This commit is contained in:
parent
3c9f03968c
commit
61bd2ea799
1 changed files with 20 additions and 3 deletions
|
@ -579,8 +579,24 @@ error_code cellPadGetInfo(vm::ptr<CellPadInfo> info)
|
||||||
|
|
||||||
info->status[i] = pads[i]->m_port_status;
|
info->status[i] = pads[i]->m_port_status;
|
||||||
pads[i]->m_port_status &= ~CELL_PAD_STATUS_ASSIGN_CHANGES;
|
pads[i]->m_port_status &= ~CELL_PAD_STATUS_ASSIGN_CHANGES;
|
||||||
info->product_id[i] = 0x0268;
|
|
||||||
info->vendor_id[i] = 0x054C;
|
switch (pads[i]->m_class_type)
|
||||||
|
{
|
||||||
|
case CELL_PAD_PCLASS_TYPE_GUITAR:
|
||||||
|
// Guitar Hero Guitar
|
||||||
|
info->vendor_id[i] = 0x12BA;
|
||||||
|
info->product_id[i] = 0x0200;
|
||||||
|
break;
|
||||||
|
case CELL_PAD_PCLASS_TYPE_DRUM:
|
||||||
|
// Guitar Hero Drum
|
||||||
|
info->vendor_id[i] = 0x12BA;
|
||||||
|
info->product_id[i] = 0x0210;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
info->vendor_id[i] = 0x054C;
|
||||||
|
info->product_id[i] = 0x0268;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
@ -653,7 +669,8 @@ error_code cellPadGetCapabilityInfo(u32 port_no, vm::ptr<CellPadCapabilityInfo>
|
||||||
return CELL_PAD_ERROR_NO_DEVICE;
|
return CELL_PAD_ERROR_NO_DEVICE;
|
||||||
|
|
||||||
// Should return the same as device capability mask, psl1ght has it backwards in pad->h
|
// Should return the same as device capability mask, psl1ght has it backwards in pad->h
|
||||||
info->info[port_no] = pad->m_device_capability;
|
memset(info->info, 0, CELL_PAD_MAX_CAPABILITY_INFO * sizeof(u32));
|
||||||
|
info->info[0] = pad->m_device_capability;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue