///////////////////////////////////////////////////////
| 548 | { |
| 549 | //////////////////////////////////////////////////////////// |
| 550 | bool isKeyPressed(Keyboard::Key key) |
| 551 | { |
| 552 | const std::lock_guard lock(inputMutex); |
| 553 | if ((static_cast<int>(key) < 0) || (static_cast<int>(key) >= static_cast<int>(keyMap.size()))) |
| 554 | return false; |
| 555 | |
| 556 | update(); |
| 557 | return keyMap[key]; |
| 558 | } |
| 559 | |
| 560 | |
| 561 | //////////////////////////////////////////////////////////// |