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/ExtendedInputState.cc

    r1638 r1641  
    118118    }
    119119
    120     void ExtendedInputState::joyStickButtonPressed(unsigned int joyStickID, unsigned int button)
     120    void ExtendedInputState::joyStickButtonPressed(unsigned int joyStickID, JoyStickButton::Enum id)
    121121    {
    122122        assert(joyStickID < joyStickHandlers_.size());
    123123        for (unsigned int i = 0; i < joyStickHandlers_[joyStickID].size(); i++)
    124             joyStickHandlers_[joyStickID][i]->joyStickButtonPressed(joyStickID, button);
    125     }
    126 
    127     void ExtendedInputState::joyStickButtonReleased(unsigned int joyStickID, unsigned int button)
     124            joyStickHandlers_[joyStickID][i]->joyStickButtonPressed(joyStickID, id);
     125    }
     126
     127    void ExtendedInputState::joyStickButtonReleased(unsigned int joyStickID, JoyStickButton::Enum id)
    128128    {
    129129        assert(joyStickID < joyStickHandlers_.size());
    130130        for (unsigned int i = 0; i < joyStickHandlers_[joyStickID].size(); i++)
    131             joyStickHandlers_[joyStickID][i]->joyStickButtonReleased(joyStickID, button);
    132     }
    133 
    134     void ExtendedInputState::joyStickButtonHeld(unsigned int joyStickID, unsigned int button)
     131            joyStickHandlers_[joyStickID][i]->joyStickButtonReleased(joyStickID, id);
     132    }
     133
     134    void ExtendedInputState::joyStickButtonHeld(unsigned int joyStickID, JoyStickButton::Enum id)
    135135    {
    136136        assert(joyStickID < joyStickHandlers_.size());
    137137        for (unsigned int i = 0; i < joyStickHandlers_[joyStickID].size(); i++)
    138             joyStickHandlers_[joyStickID][i]->joyStickButtonHeld(joyStickID, button);
     138            joyStickHandlers_[joyStickID][i]->joyStickButtonHeld(joyStickID, id);
    139139    }
    140140
Note: See TracChangeset for help on using the changeset viewer.