Changeset 1641 for code/branches/gui/src/core/input/ExtendedInputState.cc
- Timestamp:
- Jul 22, 2008, 9:16:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/input/ExtendedInputState.cc
r1638 r1641 118 118 } 119 119 120 void ExtendedInputState::joyStickButtonPressed(unsigned int joyStickID, unsigned int button)120 void ExtendedInputState::joyStickButtonPressed(unsigned int joyStickID, JoyStickButton::Enum id) 121 121 { 122 122 assert(joyStickID < joyStickHandlers_.size()); 123 123 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) 128 128 { 129 129 assert(joyStickID < joyStickHandlers_.size()); 130 130 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) 135 135 { 136 136 assert(joyStickID < joyStickHandlers_.size()); 137 137 for (unsigned int i = 0; i < joyStickHandlers_[joyStickID].size(); i++) 138 joyStickHandlers_[joyStickID][i]->joyStickButtonHeld(joyStickID, button);138 joyStickHandlers_[joyStickID][i]->joyStickButtonHeld(joyStickID, id); 139 139 } 140 140
Note: See TracChangeset
for help on using the changeset viewer.