Build Your Own Arcade Controls Forum

Software Support => Automated Projects => Topic started by: Connorsdad on April 12, 2013, 04:19:10 pm

Title: Hyperspin not rotating on exit (Problem solved.)
Post 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?
Title: Re: Hyperspin not rotating on exit
Post by: Connorsdad on April 12, 2013, 04:30:10 pm
Ok so I now have the actual monitor rotating as it should but the visuals dont.
Title: Re: Hyperspin not rotating on exit
Post by: Connorsdad on April 12, 2013, 04:33:14 pm
And now its all working lol. I thought iRotate wasn't needed to rotate in hyperspin ?
Title: Re: Hyperspin not rotating on exit
Post by: DaOld Man on April 12, 2013, 08:30:54 pm
Its definitely not needed with Mala.
:)

Glad you figured it out, how about posting your method here, to help others.
Title: Re: Hyperspin not rotating on exit
Post by: Connorsdad on April 13, 2013, 04:11:59 am
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

Code: [Select]
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


Code: [Select]
;[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