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/InputInterfaces.h

    r1755 r1878  
    287287
    288288
    289     class _CoreExport InputTickable
    290     {
    291     public:
    292         virtual ~InputTickable() { }
     289    class _CoreExport InputHandler
     290    {
     291    public:
     292        virtual ~InputHandler() { }
    293293        virtual void tickInput(float dt) = 0;
    294294    };
     
    298298        Interface class used for key input listeners.
    299299    */
    300     class _CoreExport KeyHandler : virtual public InputTickable
     300    class _CoreExport KeyHandler : virtual public InputHandler
    301301    {
    302302    public:
     
    312312        Interface class used for mouse input listeners.
    313313    */
    314     class _CoreExport MouseHandler : virtual public InputTickable
     314    class _CoreExport MouseHandler : virtual public InputHandler
    315315    {
    316316    public:
     
    329329        Interface class used for joy stick input listeners.
    330330    */
    331     class _CoreExport JoyStickHandler : virtual public InputTickable
     331    class _CoreExport JoyStickHandler : virtual public InputHandler
    332332    {
    333333    public:
     
    342342    class _CoreExport EmptyHandler : public KeyHandler, public MouseHandler, public JoyStickHandler
    343343    {
     344        friend class InputManager;
    344345    private:
     346        EmptyHandler() { }
     347        EmptyHandler(EmptyHandler&);
     348        virtual ~EmptyHandler() { }
     349
    345350        void tickInput(float dt) { }
    346351        void tickJoyStick(float dt, unsigned int joyStick) { }
Note: See TracChangeset for help on using the changeset viewer.