Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Hyperspin not rotating on exit (Problem solved.)  (Read 5781 times)

0 Members and 1 Guest are viewing this topic.

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Hyperspin not rotating on exit (Problem solved.)
« 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?
« Last Edit: April 14, 2013, 10:04:30 am by DaOld Man »
    

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Re: Hyperspin not rotating on exit
« Reply #1 on: April 12, 2013, 04:30:10 pm »
Ok so I now have the actual monitor rotating as it should but the visuals dont.
    

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Re: Hyperspin not rotating on exit
« Reply #2 on: April 12, 2013, 04:33:14 pm »
And now its all working lol. I thought iRotate wasn't needed to rotate in hyperspin ?
    

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Hyperspin not rotating on exit
« Reply #3 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.

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 22, 2018, 05:56:03 pm
  • I want to build my own arcade controls!
Re: Hyperspin not rotating on exit
« Reply #4 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
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