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: help with AdvMenu code  (Read 909 times)

0 Members and 1 Guest are viewing this topic.

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2310
  • Last login:Today at 02:23:51 pm
  • Crack don't smoke itself
    • NiceMite
help with AdvMenu code
« on: May 12, 2005, 05:42:21 pm »
I am modifying the code:

         case EVENT_ROTATE : {
               unsigned mirror = rs.video_orientation_effective & (ADV_ORIENTATION_FLIP_X | ADV_ORIENTATION_FLIP_Y);
               unsigned flip = rs.video_orientation_effective & ADV_ORIENTATION_FLIP_XY;
               if (mirror == 0) {
                  mirror = ADV_ORIENTATION_FLIP_Y;
               } else if (mirror == ADV_ORIENTATION_FLIP_Y) {
                  mirror = ADV_ORIENTATION_FLIP_X | ADV_ORIENTATION_FLIP_Y;
               } else if (mirror == (ADV_ORIENTATION_FLIP_X | ADV_ORIENTATION_FLIP_Y)) {
                  mirror = ADV_ORIENTATION_FLIP_X;
               } else {
                  mirror = 0;
               }
               flip ^= ADV_ORIENTATION_FLIP_XY;
               rs.video_orientation_effective = flip | mirror;
            }


to change the behavior of the rotate button for a cocktail cab. Is it possible to know which key was pressed for the event_rotate at this point and if so what would the syntax be? I would like up, down, left, right keys to also rotate but only if the screen is not orientated towards that joystick.
 
thanks!