I managed to hack up something (that doesn't work perfectly, but it does allow rotation when choosing the 'toggle' button for layouts.
It assumes that you have files in /home/mame/bin/
and files for the different orientations (left, right, and 'normal).
Edit the wahcade file win_main.py and modify the following:
Code: Select all
      if layout_matched:
                #print "switched to:", new_angle
                self.layout_orientation = new_angle
                if os.path.isfile(layout_files[0]):
                    self.load_layout_file(layout_files[0])
                if os.path.isfile(layout_files[1]):
                    self.histview.load_layout(layout_files[1])
                if os.path.isfile(layout_files[2]):
                    self.cpviewer.load_layout(layout_files[2])
Add the following code after:
Code: Select all
    if new_angle == 0 :
               os.system("/home/mame/bin/normal")
            if new_angle == 90 :
               os.system("/home/mame/bin/left")
This isn't perfect, you have to toggle rotation back after every game, but it’s a start.
Thomas
symgryph
     
    Posts: 8
    Joined: Fri Nov 06, 2009 12:08 am
Top
    * Edit post
    * Delete post
    * Report this post
    * Reply with quote
Re: Getting Wahcade to Rotate?
Postby symgryph » Tue Nov 17, 2009 10:15 pm
Forgot to add that you xrandr -o left, right, normal, and inverted in the different batch files called from previously mentioned edited file.
symgryph
     
    Posts: 8
    Joined: Fri Nov 06, 2009 12:08 am