Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2009, 8:41:44 PM (14 years ago)
Author:
scheusso
Message:

a small fix in IOConsole
some changes in GUI-system and preparation for keybindings menu
fix in menu handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/KeyBinder.h

    r6155 r6214  
    4343#include "JoyStickQuantityListener.h"
    4444
     45// tolua_begin
    4546namespace orxonox
    4647{
     48    // tolua_end
    4749    /**
    4850    @brief
     
    5456        KeyBinders. If you need to load other bindings, just create a new one.
    5557    */
    56     class _CoreExport KeyBinder : public InputHandler, public JoyStickQuantityListener
    57     {
     58    class _CoreExport KeyBinder // tolua_export
     59        : public InputHandler, public JoyStickQuantityListener
     60    { // tolua_export
    5861    public:
    5962        KeyBinder (const std::string& filename);
     
    6265        void clearBindings();
    6366        bool setBinding(const std::string& binding, const std::string& name, bool bTemporary = false);
     67        std::string getBinding(std::string commandName); //tolua_export
    6468        const std::string& getBindingsFilename()
    6569            { return this->filename_; }
     
    130134        //! Pointer list with all half axes
    131135        std::vector<HalfAxis*> allHalfAxes_;
     136        //! Maps input commands to all Button names, including half axes
     137        std::map<std::string, std::string> allCommands_;
    132138
    133139        /**
     
    174180        // Use some value at about 1000. This can be configured with mouseSensitivity_ anyway.
    175181        static const int mouseClippingSize_ = 1024;
    176     };
     182    };// tolua_export
    177183
    178184
     
    219225            mouseAxes_[i].relVal_ = 0.0f;
    220226    }
    221 }
     227}// tolua_export
    222228
    223229#endif /* _KeyBinder_H__ */
Note: See TracChangeset for help on using the changeset viewer.