Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2007, 8:01:43 PM (17 years ago)
Author:
nicolasc
Message:

fixed auto repeat problem

Location:
code/branches/FICN/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/Orxonox.cc

    r637 r663  
    423423    std::ostringstream windowHndStr;
    424424    OIS::ParamList pl;
     425
     426    // fixes auto repeat problem
     427    #if defined OIS_LINUX_PLATFORM
     428    pl.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true")));
     429    #endif
     430
    425431    RenderWindow *win = ogre_->getRoot()->getAutoCreatedWindow();
    426 
    427432    win->getCustomAttribute("WINDOW", &windowHnd);
    428433    windowHndStr << windowHnd;
  • code/branches/FICN/src/orxonox/core/ConfigValueContainer.cc

    r592 r663  
    2727
    2828#include <fstream>
    29 #include <string>
     29// #include <string>
    3030#include "ConfigValueContainer.h"
    3131
  • code/branches/FICN/src/orxonox/core/ConfigValueContainer.h

    r497 r663  
    7474            /** @returns the value of the type Vector3. @param value This is only needed to determine the right type. */
    7575            inline Ogre::Vector3 getValue(const Ogre::Vector3& value)           { return this->value_vector3_; }
    76             /** @returns the value of the type Colour£Value. @param value This is only needed to determine the right type. */
     76            /** @returns the value of the type ColourValue. @param value This is only needed to determine the right type. */
    7777            inline Ogre::ColourValue getValue(const Ogre::ColourValue& value)   { return this->value_colourvalue_; }
    7878
  • code/branches/FICN/src/orxonox/objects/SpaceshipSteeringObject.cc

    r614 r663  
    3232    void SpaceshipSteeringObject::loadParams(TiXmlElement* xmlElem)
    3333    {
    34         SpaceshipSteering* steering = orxonox::Orxonox::getSingleton()->getSteeringPointer();
     34      SpaceshipSteering* steering = orxonox::Orxonox::getSingleton()->getSteeringPointer();
    3535
    36         if (xmlElem->Attribute("node") && xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft"))
    37         {
    38                 std::string nodeStr = xmlElem->Attribute("node");
    39                 std::string forwardStr = xmlElem->Attribute("forward");
    40                 std::string rotateupdownStr = xmlElem->Attribute("rotateupdown");
    41                 std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft");
    42                 std::string looprightleftStr = xmlElem->Attribute("looprightleft");
     36      if (xmlElem->Attribute("node") && xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft"))
     37      {
     38        std::string nodeStr = xmlElem->Attribute("node");
     39        std::string forwardStr = xmlElem->Attribute("forward");
     40        std::string rotateupdownStr = xmlElem->Attribute("rotateupdown");
     41        std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft");
     42        std::string looprightleftStr = xmlElem->Attribute("looprightleft");
    4343
    44                 float forward, rotateupdown, rotaterightleft, looprightleft;
    45                 String2Number<float>(forward, forwardStr);
    46                 String2Number<float>(rotateupdown, rotateupdownStr);
    47                 String2Number<float>(rotaterightleft, rotaterightleftStr);
    48                 String2Number<float>(looprightleft, looprightleftStr);
     44        float forward, rotateupdown, rotaterightleft, looprightleft;
     45        String2Number<float>(forward, forwardStr);
     46        String2Number<float>(rotateupdown, rotateupdownStr);
     47        String2Number<float>(rotaterightleft, rotaterightleftStr);
     48        String2Number<float>(looprightleft, looprightleftStr);
    4949
    50                 steering = new SpaceshipSteering(forward, rotateupdown, rotaterightleft, looprightleft);
     50        steering = new SpaceshipSteering(forward, rotateupdown, rotaterightleft, looprightleft);
    5151
    52                 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
    53                     Ogre::SceneNode* sceneNode = (Ogre::SceneNode*)mgr->getRootSceneNode()->getChild(nodeStr);
     52        Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
     53        Ogre::SceneNode* sceneNode = (Ogre::SceneNode*)mgr->getRootSceneNode()->getChild(nodeStr);
    5454
    55                 steering->addNode(sceneNode);
     55        steering->addNode(sceneNode);
    5656
    5757
    5858
    5959
    60                 COUT(4) << "Loader: Initialized spaceship steering at node " << nodeStr << " values "<< forward << " " << rotateupdown << " "<< rotaterightleft << " "<< looprightleft << " "<< std::endl << std::endl;
    61         }
     60        COUT(4) << "Loader: Initialized spaceship steering at node " << nodeStr << " values "<< forward << " " << rotateupdown << " "<< rotaterightleft << " "<< looprightleft << " "<< std::endl << std::endl;
     61      }
    6262   }
    6363}
Note: See TracChangeset for help on using the changeset viewer.