Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 12:31:32 AM (16 years ago)
Author:
rgrieder
Message:

FIRST THINGS FIRST: Delete or rename your keybindings.ini (def_keybindings.ini already has the most important bindings) or else you won't be able to do anything!

Changes:

  • Multiple joy stick support should now fully work with KeyBinder too (only tested with 0/1 joystick)
  • Reloading the OIS Devices now works with KeyBinder too
  • Modified ConfigValueContainer to accept arbitrary section names
  • added tkeybind to temporary bind a command to a key
  • Fixed dlleport issue in ArgumentCompletionFunctions.h

Internal changes:

  • General cleanup in initialisation of KeyBinder
  • All names of keys/buttons/axes are now statically saved in InputInterfaces.h
  • Move a magic value in KeyBinder to a configValue (MouseWheelStepSize_)
  • Separated ConfigValues from Keybinding ConfigValueContainer in KeyBinder (looks much nicer now ;))
  • Moved some performance critical small function to the inline section
  • Removed the ugly keybind function construct from the InputManager
  • More 'harmonising' work in KeyBinder
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/input/ExtendedInputState.cc

    r1881 r1887  
    9292    }
    9393
    94     void ExtendedInputState::mouseButtonPressed(MouseButton::Enum id)
     94    void ExtendedInputState::mouseButtonPressed(MouseButtonCode::ByEnum id)
    9595    {
    9696        for (unsigned int i = 0; i < mouseHandlers_.size(); i++)
     
    9898    }
    9999
    100     void ExtendedInputState::mouseButtonReleased(MouseButton::Enum id)
     100    void ExtendedInputState::mouseButtonReleased(MouseButtonCode::ByEnum id)
    101101    {
    102102        for (unsigned int i = 0; i < mouseHandlers_.size(); i++)
     
    104104    }
    105105
    106     void ExtendedInputState::mouseButtonHeld(MouseButton::Enum id)
     106    void ExtendedInputState::mouseButtonHeld(MouseButtonCode::ByEnum id)
    107107    {
    108108        for (unsigned int i = 0; i < mouseHandlers_.size(); i++)
     
    118118    }
    119119
    120     void ExtendedInputState::joyStickButtonPressed(unsigned int joyStickID, JoyStickButton::Enum id)
     120    void ExtendedInputState::joyStickButtonPressed(unsigned int joyStickID, JoyStickButtonCode::ByEnum id)
    121121    {
    122122        assert(joyStickID < joyStickHandlers_.size());
     
    125125    }
    126126
    127     void ExtendedInputState::joyStickButtonReleased(unsigned int joyStickID, JoyStickButton::Enum id)
     127    void ExtendedInputState::joyStickButtonReleased(unsigned int joyStickID, JoyStickButtonCode::ByEnum id)
    128128    {
    129129        assert(joyStickID < joyStickHandlers_.size());
     
    132132    }
    133133
    134     void ExtendedInputState::joyStickButtonHeld(unsigned int joyStickID, JoyStickButton::Enum id)
     134    void ExtendedInputState::joyStickButtonHeld(unsigned int joyStickID, JoyStickButtonCode::ByEnum id)
    135135    {
    136136        assert(joyStickID < joyStickHandlers_.size());
Note: See TracChangeset for help on using the changeset viewer.