Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 22, 2008, 9:16:35 PM (16 years ago)
Author:
rgrieder
Message:

some de-bugging
added enum for joy stick buttons
some more little fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/input/KeyBinder.cc

    r1638 r1641  
    374374    }
    375375
    376     void KeyBinder::tickJoyStick(float dt, int device)
     376    void KeyBinder::tickJoyStick(float dt, unsigned int joyStick)
    377377    {
    378378        tickDevices(8, nHalfAxes_s);
     
    448448
    449449
    450     void KeyBinder::joyStickButtonPressed (unsigned int joyStickID, unsigned int button)
    451     { joyStickButtons_[button].execute(KeybindMode::OnPress); }
    452 
    453     void KeyBinder::joyStickButtonReleased(unsigned int joyStickID, unsigned int button)
    454     { joyStickButtons_[button].execute(KeybindMode::OnRelease); }
    455 
    456     void KeyBinder::joyStickButtonHeld    (unsigned int joyStickID, unsigned int button)
    457     { joyStickButtons_[button].execute(KeybindMode::OnHold); }
     450    void KeyBinder::joyStickButtonPressed (unsigned int joyStickID, JoyStickButton::Enum id)
     451    { joyStickButtons_[id].execute(KeybindMode::OnPress); }
     452
     453    void KeyBinder::joyStickButtonReleased(unsigned int joyStickID, JoyStickButton::Enum id)
     454    { joyStickButtons_[id].execute(KeybindMode::OnRelease); }
     455
     456    void KeyBinder::joyStickButtonHeld    (unsigned int joyStickID, JoyStickButton::Enum id)
     457    { joyStickButtons_[id].execute(KeybindMode::OnHold); }
    458458
    459459    /**
Note: See TracChangeset for help on using the changeset viewer.