mirror of https://github.com/stella-emu/stella.git
fix hat mapping (see #552)
This commit is contained in:
parent
1fe0dd34d6
commit
93cd73b163
|
@ -432,7 +432,8 @@ void PhysicalJoystickHandler::enableMapping(const Event::Type event, EventMode m
|
|||
JoyMap::JoyMappingArray joyMappings = j->joyMap.getEventMapping(event, mode);
|
||||
|
||||
for (const auto& mapping : joyMappings)
|
||||
j->joyMap.add(event, EventMode::kEmulationMode, mapping.button, mapping.axis, mapping.adir);
|
||||
j->joyMap.add(event, EventMode::kEmulationMode, mapping.button,
|
||||
mapping.axis, mapping.adir, mapping.hat, mapping.hdir);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue