Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1239 for code


Ignore:
Timestamp:
May 6, 2008, 4:34:42 PM (17 years ago)
Author:
rgrieder
Message:
  • that removes some gcc warnings
File:
1 edited

Legend:

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

    r1236 r1239  
    444444    // check whether the key already is in the list (can happen when focus was lost)
    445445    unsigned int iKey = 0;
    446     while (iKey < keysDown_.size() && keysDown_[iKey].key != e.key)
     446    while (iKey < keysDown_.size() && keysDown_[iKey].key != (KeyCode::Enum)e.key)
    447447      iKey++;
    448448    if (iKey == keysDown_.size())
     
    472472    for (unsigned int iKey = 0; iKey < keysDown_.size(); iKey++)
    473473    {
    474       if (keysDown_[iKey].key == e.key)
     474      if (keysDown_[iKey].key == (KeyCode::Enum)e.key)
    475475      {
    476476        keysDown_.erase(keysDown_.begin() + iKey);
     
    528528    // check whether the button already is in the list (can happen when focus was lost)
    529529    unsigned int iButton = 0;
    530     while (iButton < mouseButtonsDown_.size() && mouseButtonsDown_[iButton] != id)
     530    while (iButton < mouseButtonsDown_.size() && mouseButtonsDown_[iButton] != (MouseButton::Enum)id)
    531531      iButton++;
    532532    if (iButton == mouseButtonsDown_.size())
     
    549549    for (unsigned int iButton = 0; iButton < mouseButtonsDown_.size(); iButton++)
    550550    {
    551       if (mouseButtonsDown_[iButton] == id)
     551      if (mouseButtonsDown_[iButton] == (MouseButton::Enum)id)
    552552      {
    553553        mouseButtonsDown_.erase(mouseButtonsDown_.begin() + iButton);
Note: See TracChangeset for help on using the changeset viewer.