Page 1 of 1

How function "If Control = JoyPort1" works?

Posted: Thu May 06, 2021 7:52 pm
by cnterr
I can't understand how this function works:

Code: Select all

If Control = JoyPort1
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||joyport0||joy0)
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||joyport1||joy1)
	Set_CFG_Value(%dbpath%\WHDLoad.uae||joyport0||joy0)
	Set_CFG_Value(%dbpath%\WHDLoad.uae||joyport1||joy1)

Else
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||joyport0||winmouse1)
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||joyport1||joy0)
	Set_CFG_Value(%dbpath%\WHDLoad.uae||joyport0||winmouse1)
	Set_CFG_Value(%dbpath%\WHDLoad.uae||joyport1||joy0)

End If

All games, regardless of whether they are for 1 or 2 players, always start with mouse in port 1 and controller in port 2, the instruction after "else" is always resolved.
Where should the values for "Control" be? They could not find them in the database.

Re: How function "If Control = JoyPort1" works?

Posted: Thu May 06, 2021 8:14 pm
by .mad.
The script control function works from the GameBase frontend "control" tab.

Re: How function "If Control = JoyPort1" works?

Posted: Fri May 07, 2021 10:18 am
by .mad.
for games stored in the extras (WHD)
you will need to check the GEMUS control settings in the Extras Properties.

Re: How function "If Control = JoyPort1" works?

Posted: Sat May 08, 2021 9:30 pm
by cnterr
Thanks!