Merge pull request #4608 from lioncash/sign3

configure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults()
This commit is contained in:
bunnei 2020-09-10 13:56:16 -04:00 committed by GitHub
commit 41b8ecdeb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -646,10 +646,10 @@ void ConfigureInputPlayer::UpdateMappingWithDefaults() {
const auto& device = input_devices[ui->comboDevices->currentIndex()]; const auto& device = input_devices[ui->comboDevices->currentIndex()];
auto button_mapping = input_subsystem->GetButtonMappingForDevice(device); auto button_mapping = input_subsystem->GetButtonMappingForDevice(device);
auto analog_mapping = input_subsystem->GetAnalogMappingForDevice(device); auto analog_mapping = input_subsystem->GetAnalogMappingForDevice(device);
for (int i = 0; i < buttons_param.size(); ++i) { for (std::size_t i = 0; i < buttons_param.size(); ++i) {
buttons_param[i] = button_mapping[static_cast<Settings::NativeButton::Values>(i)]; buttons_param[i] = button_mapping[static_cast<Settings::NativeButton::Values>(i)];
} }
for (int i = 0; i < analogs_param.size(); ++i) { for (std::size_t i = 0; i < analogs_param.size(); ++i) {
analogs_param[i] = analog_mapping[static_cast<Settings::NativeAnalog::Values>(i)]; analogs_param[i] = analog_mapping[static_cast<Settings::NativeAnalog::Values>(i)];
} }