Merge pull request #9605 from german77/mouse_mapping

yuzu: Read mouse scroll
This commit is contained in:
bunnei 2023-01-10 17:32:58 -08:00 committed by GitHub
commit c45b1d8723
3 changed files with 10 additions and 1 deletions

View file

@ -76,7 +76,7 @@ void MappingFactory::RegisterButton(const MappingData& data) {
break;
case EngineInputType::Analog:
// Ignore mouse axis when mapping buttons
if (data.engine == "mouse") {
if (data.engine == "mouse" && data.index != 4) {
return;
}
new_input.Set("axis", data.index);