Esempio n. 1
0
 public void ClickProcessor(int buttonID)
 {
     if (buttonID == buttonUp)
     {
         topMenu.PreviousItem();
     }
     else if (buttonID == buttonDown)
     {
         topMenu.NextItem();
     }
     else if (buttonID == buttonEnter)
     {
         topMenu.SelectItem();
     }
 }
Esempio n. 2
0
 public void ClickProcessor(int buttonID)
 {
     if (buttonID == buttonUp)
     {
         activeMenu.PreviousItem();
     }
     else if (buttonID == buttonDown)
     {
         activeMenu.NextItem();
     }
     else if (buttonID == buttonEnter)
     {
         activeMenu.SelectItem();
     }
     else if (buttonID == buttonEsc)
     {
         activeMenu  = topMenu;
         currentMenu = MJMenu.RootMenu;
     }
     else if (buttonID == buttonHome)
     {
         if (currentMenu == MJMenu.RootMenu && activeMenu.currentSelection == 5 && smartassAvailable)
         {
             // If Force Roll is highlighted, the Home key will increment the
             // roll value.
             double currentRoll = GetForceRollAngle() + forceRollStep;
             if (currentRoll > 180.0)
             {
                 currentRoll -= 360.0;
             }
             else if (currentRoll < -180.0)
             {
                 currentRoll += 360.0;
             }
             SetForceRoll(true, currentRoll);
             forceRollMenuItem.isSelected = true;
             //activeSmartass.rol = currentRoll;
             //if (forceRollMenuItem.isSelected)
             //{
             //    activeSmartass.Engage();
             //}
         }
     }
 }