Software Support > Automated Projects
Hyperspin not rotating on exit (Problem solved.)
(1/1)
Connorsdad:
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?
Connorsdad:
Ok so I now have the actual monitor rotating as it should but the visuals dont.
Connorsdad:
And now its all working lol. I thought iRotate wasn't needed to rotate in hyperspin ?
DaOld Man:
Its definitely not needed with Mala.
:)
Glad you figured it out, how about posting your method here, to help others.
Connorsdad:
I was following the instructions by DNA Dan from this thread 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
--- Code: ---Run, %COMSPEC% /c "smccmd --resume --speed 1000", ,{enter},hide
iniwrite, vertical, C:\arcade\mame\Rotation.ini, controls, PrevState
exitapp
--- End code ---
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
--- Code: ---;[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
}
--- End code ---
All sorted ;D
Navigation
[0] Message Index
Go to full version