Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2008, 1:26:48 PM (16 years ago)
Author:
rgrieder
Message:

Fixed two issues with input:

  • Buffer gets cleared now when the window focus changes
  • Added a configValue in the InGameConsole:

Until now the input was always transparent to the level when activating the console (exception keyboard input of course)
bHidesAllInput_ can change that setting (configured in orxonox.ini)

@Oli: Sorry, couldn't apply the patch in the network branch because of conflicts (I have already made some changes to the InputManager in the trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/input/InputState.h

    r1755 r1878  
    6060        }
    6161
     62        bool handlersChanged() { return this->bHandlersChanged_; }
     63        void resetHandlersChanged() { bHandlersChanged_ = false; }
     64
    6265        virtual void onEnter() { if (executorOnEnter_) (*executorOnEnter_)(); }
    6366        virtual void onLeave() { if (executorOnLeave_) (*executorOnLeave_)(); }
     
    8790
    8891    protected:
    89         InputState() : priority_(0), executorOnEnter_(0), executorOnLeave_(0) { }
     92        InputState() : priority_(0), bHandlersChanged_(false), executorOnEnter_(0), executorOnLeave_(0) { }
    9093        virtual ~InputState() { }
    9194
     
    9699                bInputDeviceEnabled_[device] = bEnabled;
    97100        }
     101
     102        bool bHandlersChanged_;
    98103
    99104    private:
Note: See TracChangeset for help on using the changeset viewer.