mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +00:00
Fix cellMouse/Keyboard initialization
This commit is contained in:
parent
9fadd48ea3
commit
039ca6e839
@ -37,13 +37,16 @@ error_code cellKbInit(u32 max_connect)
|
||||
|
||||
auto& handler = g_fxo->get<KeyboardHandlerBase>();
|
||||
|
||||
const auto init = handler.init.init();
|
||||
auto init = handler.init.init();
|
||||
|
||||
if (!init)
|
||||
return CELL_KB_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if (max_connect == 0 || max_connect > CELL_KB_MAX_KEYBOARDS)
|
||||
{
|
||||
init.cancel();
|
||||
return CELL_KB_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
libio_sys_config_init();
|
||||
handler.Init(std::min(max_connect, 7u));
|
||||
|
@ -38,13 +38,14 @@ error_code cellMouseInit(u32 max_connect)
|
||||
|
||||
auto& handler = g_fxo->get<MouseHandlerBase>();
|
||||
|
||||
const auto init = handler.init.init();
|
||||
auto init = handler.init.init();
|
||||
|
||||
if (!init)
|
||||
return CELL_MOUSE_ERROR_ALREADY_INITIALIZED;
|
||||
|
||||
if (max_connect == 0 || max_connect > CELL_MAX_MICE)
|
||||
{
|
||||
init.cancel();
|
||||
return CELL_MOUSE_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user