| 220 | }; |
| 221 | |
| 222 | GuiImpl::GuiImpl(ref<Device> pDevice, float scaleFactor) : mpDevice(pDevice), mScaleFactor(scaleFactor) |
| 223 | { |
| 224 | mpContext = ImGui::CreateContext(); |
| 225 | ImGui::SetCurrentContext(mpContext); |
| 226 | ImGuiIO& io = ImGui::GetIO(); |
| 227 | io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; |
| 228 | io.KeyMap[ImGuiKey_Space] = (uint32_t)Input::Key::Space; |
| 229 | io.KeyMap[ImGuiKey_Apostrophe] = (uint32_t)Input::Key::Apostrophe; |
| 230 | io.KeyMap[ImGuiKey_Comma] = (uint32_t)Input::Key::Comma; |
| 231 | io.KeyMap[ImGuiKey_Minus] = (uint32_t)Input::Key::Minus; |
| 232 | io.KeyMap[ImGuiKey_Period] = (uint32_t)Input::Key::Period; |
| 233 | io.KeyMap[ImGuiKey_Slash] = (uint32_t)Input::Key::Slash; |
| 234 | io.KeyMap[ImGuiKey_0] = (uint32_t)Input::Key::Key0; |
| 235 | io.KeyMap[ImGuiKey_1] = (uint32_t)Input::Key::Key1; |
| 236 | io.KeyMap[ImGuiKey_2] = (uint32_t)Input::Key::Key2; |
| 237 | io.KeyMap[ImGuiKey_3] = (uint32_t)Input::Key::Key3; |
| 238 | io.KeyMap[ImGuiKey_4] = (uint32_t)Input::Key::Key4; |
| 239 | io.KeyMap[ImGuiKey_5] = (uint32_t)Input::Key::Key5; |
| 240 | io.KeyMap[ImGuiKey_6] = (uint32_t)Input::Key::Key6; |
| 241 | io.KeyMap[ImGuiKey_7] = (uint32_t)Input::Key::Key7; |
| 242 | io.KeyMap[ImGuiKey_8] = (uint32_t)Input::Key::Key8; |
| 243 | io.KeyMap[ImGuiKey_9] = (uint32_t)Input::Key::Key9; |
| 244 | io.KeyMap[ImGuiKey_Semicolon] = (uint32_t)Input::Key::Semicolon; |
| 245 | io.KeyMap[ImGuiKey_Equal] = (uint32_t)Input::Key::Equal; |
| 246 | io.KeyMap[ImGuiKey_A] = (uint32_t)Input::Key::A; |
| 247 | io.KeyMap[ImGuiKey_B] = (uint32_t)Input::Key::B; |
| 248 | io.KeyMap[ImGuiKey_C] = (uint32_t)Input::Key::C; |
| 249 | io.KeyMap[ImGuiKey_D] = (uint32_t)Input::Key::D; |
| 250 | io.KeyMap[ImGuiKey_E] = (uint32_t)Input::Key::E; |
| 251 | io.KeyMap[ImGuiKey_F] = (uint32_t)Input::Key::F; |
| 252 | io.KeyMap[ImGuiKey_G] = (uint32_t)Input::Key::G; |
| 253 | io.KeyMap[ImGuiKey_H] = (uint32_t)Input::Key::H; |
| 254 | io.KeyMap[ImGuiKey_I] = (uint32_t)Input::Key::I; |
| 255 | io.KeyMap[ImGuiKey_J] = (uint32_t)Input::Key::J; |
| 256 | io.KeyMap[ImGuiKey_K] = (uint32_t)Input::Key::K; |
| 257 | io.KeyMap[ImGuiKey_L] = (uint32_t)Input::Key::L; |
| 258 | io.KeyMap[ImGuiKey_M] = (uint32_t)Input::Key::M; |
| 259 | io.KeyMap[ImGuiKey_N] = (uint32_t)Input::Key::N; |
| 260 | io.KeyMap[ImGuiKey_O] = (uint32_t)Input::Key::O; |
| 261 | io.KeyMap[ImGuiKey_P] = (uint32_t)Input::Key::P; |
| 262 | io.KeyMap[ImGuiKey_Q] = (uint32_t)Input::Key::Q; |
| 263 | io.KeyMap[ImGuiKey_R] = (uint32_t)Input::Key::R; |
| 264 | io.KeyMap[ImGuiKey_S] = (uint32_t)Input::Key::S; |
| 265 | io.KeyMap[ImGuiKey_T] = (uint32_t)Input::Key::T; |
| 266 | io.KeyMap[ImGuiKey_U] = (uint32_t)Input::Key::U; |
| 267 | io.KeyMap[ImGuiKey_V] = (uint32_t)Input::Key::V; |
| 268 | io.KeyMap[ImGuiKey_W] = (uint32_t)Input::Key::W; |
| 269 | io.KeyMap[ImGuiKey_X] = (uint32_t)Input::Key::X; |
| 270 | io.KeyMap[ImGuiKey_Y] = (uint32_t)Input::Key::Y; |
| 271 | io.KeyMap[ImGuiKey_Z] = (uint32_t)Input::Key::Z; |
| 272 | io.KeyMap[ImGuiKey_LeftBracket] = (uint32_t)Input::Key::LeftBracket; |
| 273 | io.KeyMap[ImGuiKey_Backslash] = (uint32_t)Input::Key::Backslash; |
| 274 | io.KeyMap[ImGuiKey_RightBracket] = (uint32_t)Input::Key::RightBracket; |
| 275 | io.KeyMap[ImGuiKey_GraveAccent] = (uint32_t)Input::Key::GraveAccent; |
| 276 | io.KeyMap[ImGuiKey_Escape] = (uint32_t)Input::Key::Escape; |
| 277 | io.KeyMap[ImGuiKey_Tab] = (uint32_t)Input::Key::Tab; |
| 278 | io.KeyMap[ImGuiKey_Enter] = (uint32_t)Input::Key::Enter; |
| 279 | io.KeyMap[ImGuiKey_Backspace] = (uint32_t)Input::Key::Backspace; |
nothing calls this directly
no test coverage detected