42 ImGuiIO& io = ImGui::GetIO();
45 io.IniFilename =
nullptr;
48 io.KeyMap[ImGuiKey_Tab] = OIS::KC_TAB;
49 io.KeyMap[ImGuiKey_LeftArrow] = OIS::KC_LEFT;
50 io.KeyMap[ImGuiKey_RightArrow] = OIS::KC_RIGHT;
51 io.KeyMap[ImGuiKey_UpArrow] = OIS::KC_UP;
52 io.KeyMap[ImGuiKey_DownArrow] = OIS::KC_DOWN;
53 io.KeyMap[ImGuiKey_PageUp] = OIS::KC_PGUP;
54 io.KeyMap[ImGuiKey_PageDown] = OIS::KC_PGDOWN;
55 io.KeyMap[ImGuiKey_Home] = OIS::KC_HOME;
56 io.KeyMap[ImGuiKey_End] = OIS::KC_END;
57 io.KeyMap[ImGuiKey_Delete] = OIS::KC_DELETE;
58 io.KeyMap[ImGuiKey_Backspace] = OIS::KC_BACK;
59 io.KeyMap[ImGuiKey_Enter] = OIS::KC_RETURN;
60 io.KeyMap[ImGuiKey_Escape] = OIS::KC_ESCAPE;
61 io.KeyMap[ImGuiKey_A] = OIS::KC_A;
62 io.KeyMap[ImGuiKey_C] = OIS::KC_C;
63 io.KeyMap[ImGuiKey_V] = OIS::KC_V;
64 io.KeyMap[ImGuiKey_X] = OIS::KC_X;
65 io.KeyMap[ImGuiKey_Y] = OIS::KC_Y;
66 io.KeyMap[ImGuiKey_Z] = OIS::KC_Z;
67 io.KeyMap[ImGuiKey_KeyPad0] = OIS::KC_NUMPAD0;
68 io.KeyMap[ImGuiKey_KeyPad1] = OIS::KC_NUMPAD1;
69 io.KeyMap[ImGuiKey_KeyPad2] = OIS::KC_NUMPAD2;
70 io.KeyMap[ImGuiKey_KeyPad3] = OIS::KC_NUMPAD3;
71 io.KeyMap[ImGuiKey_KeyPad4] = OIS::KC_NUMPAD4;
72 io.KeyMap[ImGuiKey_KeyPad5] = OIS::KC_NUMPAD5;
73 io.KeyMap[ImGuiKey_KeyPad6] = OIS::KC_NUMPAD6;
74 io.KeyMap[ImGuiKey_KeyPad7] = OIS::KC_NUMPAD7;
75 io.KeyMap[ImGuiKey_KeyPad8] = OIS::KC_NUMPAD8;
76 io.KeyMap[ImGuiKey_KeyPad9] = OIS::KC_NUMPAD9;
77 io.KeyMap[ImGuiKey_Slash] = OIS::KC_SLASH;
92 ImGuiIO& io = ImGui::GetIO();
94 io.MousePos.x = arg.state.X.abs;
95 io.MousePos.y = arg.state.Y.abs;
96 io.MouseWheel = Ogre::Math::Clamp((
float)arg.state.Z.rel, -1/3.f, 1/3.f);
136 const Ogre::String& invocation,
bool& skipThisInvocation)
139 if(queueGroupId == Ogre::RENDER_QUEUE_OVERLAY)
141 Ogre::Viewport* vp = Ogre::Root::getSingletonPtr()->getRenderSystem()->_getViewport();
144 Ogre::SceneManager* sceneMgr = vp->getCamera()->getSceneManager();
145 if (vp->getOverlaysEnabled() && sceneMgr->_getCurrentRenderStage() != Ogre::SceneManager::IRS_RENDER_TO_TEXTURE)
154 m_imgui_overlay->_findVisibleObjects(vp->getCamera(), sceneMgr->getRenderQueue(), vp);
System integration layer; inspired by OgreBites::ApplicationContext.
Ogre::Viewport * GetViewport()
static const ResourcePack FONTS