maple: std controller input mask was applied to all gamepad devices

This commit is contained in:
Flyinghead 2019-08-30 23:37:43 +02:00
parent 2015d9a696
commit e07879e43c
2 changed files with 1 additions and 2 deletions

View File

@ -79,7 +79,6 @@ struct MapleConfigMap : IMapleConfigMap
pjs->kcode=kcode[player_num];
if (settings.platform.system == DC_PLATFORM_DREAMCAST)
{
pjs->kcode |= 0xF901; // mask off DPad2, C, D and Z
pjs->joy[PJAI_X1]=GetBtFromSgn(joyx[player_num]);
pjs->joy[PJAI_Y1]=GetBtFromSgn(joyy[player_num]);
pjs->trigger[PJTI_R]=rt[player_num];

View File

@ -201,7 +201,7 @@ struct maple_sega_controller: maple_base
}
virtual u32 transform_kcode(u32 kcode) {
return kcode;
return kcode | 0xF901; // mask off DPad2, C, D and Z;
}
virtual u32 get_analog_axis(int index, const PlainJoystickState &pjs) {