mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-15 22:53:47 +00:00
Make cellMouseGetDataList return CELL_MOUSE_ERROR_NO_DEVICE if mouse handler is set to null
This commit is contained in:
parent
4600094829
commit
6782b22637
@ -134,9 +134,14 @@ s32 cellMouseGetData(u32 port_no, vm::ptr<CellMouseData> data)
|
|||||||
|
|
||||||
s32 cellMouseGetDataList(u32 port_no, vm::ptr<CellMouseDataList> data)
|
s32 cellMouseGetDataList(u32 port_no, vm::ptr<CellMouseDataList> data)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED_FUNC(sys_io);
|
sys_io.todo("cellMouseGetDataList(port_no=%d, data=0x%x", port_no, data);
|
||||||
|
if (g_cfg.io.mouse == mouse_handler::null)
|
||||||
return CELL_OK;
|
return CELL_MOUSE_ERROR_NO_DEVICE;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
data->list_num = 0;
|
||||||
|
return CELL_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 cellMouseSetTabletMode(u32 port_no, u32 mode)
|
s32 cellMouseSetTabletMode(u32 port_no, u32 mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user