mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
input: log all config file content if used
This commit is contained in:
parent
3970b7b754
commit
548cc074f4
4 changed files with 49 additions and 18 deletions
|
|
@ -47,6 +47,8 @@ void basic_mouse_handler::Init(const u32 max_connect)
|
|||
|
||||
void basic_mouse_handler::reload_config()
|
||||
{
|
||||
input_log.notice("Basic mouse config=\n%s", g_cfg_mouse.to_string());
|
||||
|
||||
m_buttons[CELL_MOUSE_BUTTON_1] = get_mouse_button(g_cfg_mouse.mouse_button_1);
|
||||
m_buttons[CELL_MOUSE_BUTTON_2] = get_mouse_button(g_cfg_mouse.mouse_button_2);
|
||||
m_buttons[CELL_MOUSE_BUTTON_3] = get_mouse_button(g_cfg_mouse.mouse_button_3);
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ void raw_mouse::reload_config()
|
|||
{
|
||||
if (const auto& player = ::at32(g_cfg_raw_mouse.players, m_index))
|
||||
{
|
||||
input_log.notice("Raw mouse config for player %d=\n%s", m_index, player->to_string());
|
||||
|
||||
m_mouse_acceleration = static_cast<float>(player->mouse_acceleration.get()) / 100.0f;
|
||||
|
||||
m_buttons[CELL_MOUSE_BUTTON_1] = get_mouse_button(player->mouse_button_1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue