Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8743 in orxonox.OLD for trunk/src/lib/gui


Ignore:
Timestamp:
Jun 23, 2006, 3:17:15 PM (19 years ago)
Author:
bensch
Message:

gui: event-handler now supports retrieving key-states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_handler.cc

    r8742 r8743  
    238238      case SDLK_TAB:
    239239        if (event.bPressed)
    240           this->selectNext();
     240        {
     241          if (EventHandler::getInstance()->isPressed(SDLK_LSHIFT) || EventHandler::getInstance()->isPressed(SDLK_RSHIFT))
     242            this->selectPrevious();
     243          else
     244            this->selectNext();
     245        }
    241246        break;
    242247    }
     
    277282  void GLGuiHandler::checkFocus()
    278283  {
    279    // CHECK THE COLLISIONS.
     284    // CHECK THE COLLISIONS.
    280285    const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET);
    281286
Note: See TracChangeset for help on using the changeset viewer.