mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Salvaging code (#9432)
* Minor input refactoring * fix sys_config_unregister_io_error_listener log message * Remove unused variables in RepaintTextColors Co-authored-by: GermanAizek <GermanAizek@yandex.ru>
This commit is contained in:
parent
ab23e5ca0e
commit
03ad5c6830
14 changed files with 208 additions and 181 deletions
|
|
@ -290,9 +290,16 @@ xinput_pad_handler::PadButtonValues xinput_pad_handler::get_button_values_scp(co
|
|||
return values;
|
||||
}
|
||||
|
||||
pad_preview_values xinput_pad_handler::get_preview_values(std::unordered_map<u64, u16> data)
|
||||
pad_preview_values xinput_pad_handler::get_preview_values(const std::unordered_map<u64, u16>& data)
|
||||
{
|
||||
return { data[LT], data[RT], data[LSXPos] - data[LSXNeg], data[LSYPos] - data[LSYNeg], data[RSXPos] - data[RSXNeg], data[RSYPos] - data[RSYNeg] };
|
||||
return {
|
||||
data.at(LT),
|
||||
data.at(RT),
|
||||
data.at(LSXPos) - data.at(LSXNeg),
|
||||
data.at(LSYPos) - data.at(LSYNeg),
|
||||
data.at(RSXPos) - data.at(RSXNeg),
|
||||
data.at(RSYPos) - data.at(RSYNeg)
|
||||
};
|
||||
}
|
||||
|
||||
bool xinput_pad_handler::Init()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue