Build Your Own Arcade Controls Forum
Software Support => Automated Projects => Topic started by: Connorsdad on April 12, 2013, 04:19:10 pm
-
As the subject line I cannot get hyperspin to rotate back to landscape on exit of a vertical mame game, it rotates (portrait) fine on launch. Any ideas?
-
Ok so I now have the actual monitor rotating as it should but the visuals dont.
-
And now its all working lol. I thought iRotate wasn't needed to rotate in hyperspin ?
-
Its definitely not needed with Mala.
:)
Glad you figured it out, how about posting your method here, to help others.
-
I was following the instructions by DNA Dan from this thread http://forum.arcadecontrols.com/index.php/topic,110471.80.html (http://forum.arcadecontrols.com/index.php/topic,110471.80.html)
What I failed to do was change the code in the Rotation.ahk to suit my directory structure:
C:\arcade\mame\Rotation.ini
Run, %COMSPEC% /c "smccmd --resume --speed 1000", ,{enter},hide
iniwrite, vertical, C:\arcade\mame\Rotation.ini, controls, PrevState
exitapp
Now the monitor physically rotates as it should but the visual display didn't. I needed to add the commands in Rotation.ahk to make iRotate rotate the display.
run C:\Program Files (x86)\iRotate\irotate.exe /1:rotate=90
run C:\Program Files (x86)\iRotate\irotate.exe /1:rotate=0
;[Rotation.exe]
;
;
#SingleInstance force
romName = %1%
param := "%romName%"
;reads verticalRoms controlled roms list
IniRead, verticalRoms, %A_ScriptDir%\Rotation.ini, controls, Set2_vertical
;reads state of vertical, horizontal rotation (user added line in "controls.ini")
iniread, state, %a_scriptdir%\Rotation.ini, Controls, PrevState
ifnotinstring, verticalRoms, %romname%, gosub, horizontalrotation
verticalrotation:
if ( State = "vertical")
{
exitapp
}
else if ( State = "horizontal")
{
Run, %COMSPEC% /c "smccmd --resume --speed 2300", ,{enter},hide
run C:\Program Files (x86)\iRotate\irotate.exe /1:rotate=90
iniwrite, vertical, C:\HyperSpin\Emulators\MAME\Rotation.ini, controls, PrevState
exitapp
}
horizontalrotation:
if ( State = "horizontal" )
{
exitapp
}
else if ( State = "vertical")
{
Run, %COMSPEC% /c "smccmd --resume --speed -2100", ,{enter},hide
run C:\Program Files (x86)\iRotate\irotate.exe /1:rotate=0
iniwrite, horizontal, C:\HyperSpin\Emulators\MAME\Rotation.ini, controls, PrevState
exitapp
}
All sorted ;D