Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2011, 11:54:07 AM (13 years ago)
Author:
landauf
Message:

added function to KeyBinder which allows to change the keybind mode (OnPress, OnRelease, OnHold) of a command which is bound to a key.
enhanced ConsoleCommand (+Manipulator) to use this feature.

input system experts, please review :D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/command/ConsoleCommand.h

    r7401 r7861  
    510510                    /// Changes the keybind mode of the command.
    511511                    inline ConsoleCommandManipulator& keybindMode(KeybindMode::Value mode)
    512                         { if (this->command_) { this->command_->keybindMode(mode); } return *this; }
     512                        { if (this->command_) { this->command_->changeKeybindMode(mode); } return *this; }
    513513                    /// Sets the input configured param to the given index.
    514514                    inline ConsoleCommandManipulator& inputConfiguredParam(int index)
     
    598598            }
    599599
    600             /// Changes the keybind mode.
     600            /// Sets the keybind mode. Note: use changeKeybindMode if you intend to change the mode.
    601601            inline ConsoleCommand& keybindMode(KeybindMode::Value mode)
    602602                { this->keybindMode_ = mode; return *this; }
     
    604604            inline KeybindMode::Value getKeybindMode() const
    605605                { return this->keybindMode_; }
     606
     607            ConsoleCommand& changeKeybindMode(KeybindMode::Value mode);
    606608
    607609            /// Changes the input configured param to the given index.
Note: See TracChangeset for help on using the changeset viewer.