| 5 | namespace obe::Input |
| 6 | { |
| 7 | void InputManager::createInputMap() |
| 8 | { |
| 9 | m_inputs["A"] |
| 10 | = std::make_unique<InputButton>(sf::Keyboard::A, "A", "A", InputType::Alpha); |
| 11 | m_inputs["Z"] |
| 12 | = std::make_unique<InputButton>(sf::Keyboard::Z, "Z", "Z", InputType::Alpha); |
| 13 | m_inputs["E"] |
| 14 | = std::make_unique<InputButton>(sf::Keyboard::E, "E", "E", InputType::Alpha); |
| 15 | m_inputs["R"] |
| 16 | = std::make_unique<InputButton>(sf::Keyboard::R, "R", "E", InputType::Alpha); |
| 17 | m_inputs["T"] |
| 18 | = std::make_unique<InputButton>(sf::Keyboard::T, "T", "T", InputType::Alpha); |
| 19 | m_inputs["Y"] |
| 20 | = std::make_unique<InputButton>(sf::Keyboard::Y, "Y", "Y", InputType::Alpha); |
| 21 | m_inputs["U"] |
| 22 | = std::make_unique<InputButton>(sf::Keyboard::U, "U", "U", InputType::Alpha); |
| 23 | m_inputs["I"] |
| 24 | = std::make_unique<InputButton>(sf::Keyboard::I, "I", "I", InputType::Alpha); |
| 25 | m_inputs["O"] |
| 26 | = std::make_unique<InputButton>(sf::Keyboard::O, "O", "O", InputType::Alpha); |
| 27 | m_inputs["P"] |
| 28 | = std::make_unique<InputButton>(sf::Keyboard::P, "P", "P", InputType::Alpha); |
| 29 | m_inputs["Q"] |
| 30 | = std::make_unique<InputButton>(sf::Keyboard::Q, "Q", "Q", InputType::Alpha); |
| 31 | m_inputs["S"] |
| 32 | = std::make_unique<InputButton>(sf::Keyboard::S, "S", "S", InputType::Alpha); |
| 33 | m_inputs["D"] |
| 34 | = std::make_unique<InputButton>(sf::Keyboard::D, "D", "D", InputType::Alpha); |
| 35 | m_inputs["F"] |
| 36 | = std::make_unique<InputButton>(sf::Keyboard::F, "F", "F", InputType::Alpha); |
| 37 | m_inputs["G"] |
| 38 | = std::make_unique<InputButton>(sf::Keyboard::G, "G", "G", InputType::Alpha); |
| 39 | m_inputs["H"] |
| 40 | = std::make_unique<InputButton>(sf::Keyboard::H, "H", "H", InputType::Alpha); |
| 41 | m_inputs["J"] |
| 42 | = std::make_unique<InputButton>(sf::Keyboard::J, "J", "J", InputType::Alpha); |
| 43 | m_inputs["K"] |
| 44 | = std::make_unique<InputButton>(sf::Keyboard::K, "K", "K", InputType::Alpha); |
| 45 | m_inputs["L"] |
| 46 | = std::make_unique<InputButton>(sf::Keyboard::L, "L", "L", InputType::Alpha); |
| 47 | m_inputs["M"] |
| 48 | = std::make_unique<InputButton>(sf::Keyboard::M, "M", "M", InputType::Alpha); |
| 49 | m_inputs["W"] |
| 50 | = std::make_unique<InputButton>(sf::Keyboard::W, "W", "W", InputType::Alpha); |
| 51 | m_inputs["X"] |
| 52 | = std::make_unique<InputButton>(sf::Keyboard::X, "X", "W", InputType::Alpha); |
| 53 | m_inputs["C"] |
| 54 | = std::make_unique<InputButton>(sf::Keyboard::C, "C", "C", InputType::Alpha); |
| 55 | m_inputs["V"] |
| 56 | = std::make_unique<InputButton>(sf::Keyboard::V, "V", "V", InputType::Alpha); |
| 57 | m_inputs["B"] |
| 58 | = std::make_unique<InputButton>(sf::Keyboard::B, "B", "B", InputType::Alpha); |
| 59 | m_inputs["N"] |
| 60 | = std::make_unique<InputButton>(sf::Keyboard::N, "N", "N", InputType::Alpha); |
| 61 | // Numeric |
| 62 | m_inputs["0"] = std::make_unique<InputButton>( |
| 63 | sf::Keyboard::Num0, "0", "0", InputType::Numeric); |
| 64 | m_inputs["1"] = std::make_unique<InputButton>( |