Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2009, 11:17:14 PM (14 years ago)
Author:
dafrick
Message:

The KeyBindMenu now shows all Keybindings and allows for various manipulations.
For this the bookkeeping in KeyBinder has ben improved.
Also KeyEscape now can't be bound to other commands.

File:
1 edited

Legend:

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

    r6214 r6311  
    3535#include <string>
    3636#include <vector>
     37#include <map>
    3738#include <boost/shared_ptr.hpp>
    3839
     
    6667        bool setBinding(const std::string& binding, const std::string& name, bool bTemporary = false);
    6768        std::string getBinding(std::string commandName); //tolua_export
     69        std::string getBinding(std::string commandName, unsigned int index); //tolua_export
     70        unsigned int getNumberOfBindings(std::string commandName); //tolua_export
     71       
    6872        const std::string& getBindingsFilename()
    6973            { return this->filename_; }
     
    135139        std::vector<HalfAxis*> allHalfAxes_;
    136140        //! Maps input commands to all Button names, including half axes
    137         std::map<std::string, std::string> allCommands_;
     141        std::map< std::string, std::vector<std::string> > allCommands_;
    138142
    139143        /**
     
    156160
    157161    private:
     162        void addButtonToCommand(std::string command, Button* button);
     163       
    158164        //##### ConfigValues #####
    159165        //! Whether to filter small value analog input
Note: See TracChangeset for help on using the changeset viewer.