- Timestamp:
- Dec 21, 2009, 1:18:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/KeyBinder.cc
r6360 r6387 283 283 } 284 284 } 285 285 286 286 void KeyBinder::addButtonToCommand(std::string command, Button* button) 287 287 { 288 288 std::ostringstream stream; 289 289 stream << button->groupName_ << "." << button->name_; 290 290 291 291 std::vector<std::string>& oldKeynames = this->allCommands_[button->bindingString_]; 292 292 std::vector<std::string>::iterator it = std::find(oldKeynames.begin(), oldKeynames.end(), stream.str()); … … 295 295 oldKeynames.erase(it); 296 296 } 297 297 298 298 if(command != "") 299 299 { … … 305 305 } 306 306 } 307 307 308 308 /** 309 309 @brief … … 317 317 return keynames.front(); 318 318 } 319 319 320 320 return ""; 321 321 } 322 322 323 323 /** 324 324 @brief … … 338 338 return keynames[index]; 339 339 } 340 340 341 341 return ""; 342 342 } 343 343 344 344 return ""; 345 345 } 346 346 347 347 /** 348 348 @brief … … 358 358 return keynames.size(); 359 359 } 360 360 361 361 return 0; 362 362 }
Note: See TracChangeset
for help on using the changeset viewer.