- Timestamp:
- May 6, 2008, 4:34:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/InputManager.cc
r1236 r1239 444 444 // check whether the key already is in the list (can happen when focus was lost) 445 445 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) 447 447 iKey++; 448 448 if (iKey == keysDown_.size()) … … 472 472 for (unsigned int iKey = 0; iKey < keysDown_.size(); iKey++) 473 473 { 474 if (keysDown_[iKey].key == e.key)474 if (keysDown_[iKey].key == (KeyCode::Enum)e.key) 475 475 { 476 476 keysDown_.erase(keysDown_.begin() + iKey); … … 528 528 // check whether the button already is in the list (can happen when focus was lost) 529 529 unsigned int iButton = 0; 530 while (iButton < mouseButtonsDown_.size() && mouseButtonsDown_[iButton] != id)530 while (iButton < mouseButtonsDown_.size() && mouseButtonsDown_[iButton] != (MouseButton::Enum)id) 531 531 iButton++; 532 532 if (iButton == mouseButtonsDown_.size()) … … 549 549 for (unsigned int iButton = 0; iButton < mouseButtonsDown_.size(); iButton++) 550 550 { 551 if (mouseButtonsDown_[iButton] == id)551 if (mouseButtonsDown_[iButton] == (MouseButton::Enum)id) 552 552 { 553 553 mouseButtonsDown_.erase(mouseButtonsDown_.begin() + iButton);
Note: See TracChangeset
for help on using the changeset viewer.