Skip to content

Commit 9e8ae1d

Browse files
authored
Merge pull request #26 from sergiobenrocha2/master
Change Super Hang-On button layout and fix in the Makefile
2 parents 083042d + 908d70d commit 9e8ae1d

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ DEFS += -DLUA_COMPAT_APIINTCASTS
569569

570570
# CFLAGS is defined based on C or C++ targets
571571
# (remember, expansion only happens when used, so doing it here is ok)
572-
CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS)
572+
CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS)
573573

574574
# we compile C-only to C89 standard with GNU extensions
575575
# we compile C++ code to C++98 standard with GNU extensions

src/osd/retro/retromain.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,20 @@ static void Input_Binding(running_machine &machine)
13241324
Buttons_mapping[5]=RETROPAD_R;
13251325

13261326
}
1327+
else if (
1328+
(core_stricmp(machine.system().name, "shangon") == 0) ||
1329+
(core_stricmp(machine.system().parent, "shangon") == 0)
1330+
)
1331+
{
1332+
/* Super Hang-On */
1333+
1334+
Buttons_mapping[0]=RETROPAD_A;
1335+
Buttons_mapping[1]=RETROPAD_B;
1336+
Buttons_mapping[2]=RETROPAD_Y;
1337+
Buttons_mapping[3]=RETROPAD_X;
1338+
Buttons_mapping[4]=RETROPAD_L;
1339+
Buttons_mapping[5]=RETROPAD_R;
1340+
}
13271341

13281342
}
13291343

0 commit comments

Comments
 (0)