class SystemUserFunction extends UserFunction {
; Use this function to define any code you want to run in every module on start
StartUserFeatures() {
Global RLLog, romName, emupath, ListXMLInfo
RLLog.Info(A_ThisFunc . " - Starting")
ListMameTable := []
ListMameTable := ListXMLInfo%zz%(romName)
RotationAngle := ListMameTable[2]
If (romName == "punchout")
{
RLLog.Info("RotateFunctions - Override Punchout")
Run, %emupath%\maestro -p, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Portrait")
}
Else If (RotationAngle != "0")
{
Run, %emupath%\maestro -p, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Portrait")
} Else {
Run, %emupath%\maestro -l, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Landscape")
}
RLLog.Info(A_ThisFunc . " - Ending")
}
; Use this function to define any code you may need to stop or clean up in every module on exit
StopUserFeatures() {
Global RLLog, emupath
RLLog.Info(A_ThisFunc . " - Starting")
Run, %emupath%\maestro -l, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Landscape")
}
RLLog.Info(A_ThisFunc . " - Ending")
}
class SystemUserFunction extends UserFunction {
; Use this function to define any code you want to run in every module on start
StartUserFeatures() {
Global RLLog, romName, emupath, ListXMLInfo
RLLog.Info(A_ThisFunc . " - Starting")
ListMameTable := []
ListMameTable := ListXMLInfo%zz%(romName)
RotationAngle := ListMameTable[2]
If (romName == "punchout")
{
RLLog.Info("RotateFunctions - Override Punchout")
Run, %emupath%\maestro -p, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Portrait")
}
Else If (RotationAngle != "0")
{
Run, %emupath%\maestro -p, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Portrait")
}
Else {
Run, %emupath%\maestro -l, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Landscape")
}
RLLog.Info(A_ThisFunc . " - Ending")
}
; Use this function to define any code you may need to stop or clean up in every module on exit
StopUserFeatures() {
Global RLLog, emupath
RLLog.Info(A_ThisFunc . " - Starting")
Run, %emupath%\maestro -l, %emupath%\, hide
RLLog.Info("RotateFunctions - Rotating Landscape")
RLLog.Info(A_ThisFunc . " - Ending")
}
}
class GameUserFunction extends GameFunction {
SetFullscreenPostLaunch(fs) {
RLLog.Info(A_ThisFunc . " - Starting")
;Sleep, 1000
Send, !{Enter}
RLLog.Info(A_ThisFunc . " - Ending")
}
}
Some games will only accept the physical keyboard, yet somehow I don't believe that it cannot be sorted out.