yuzu: Read mouse wheel input

This commit is contained in:
Narr the Reg 2023-01-10 18:18:30 -06:00
parent 6ffb816d5a
commit b6721a40fe
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);