MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetCursorShape

Method SetCursorShape

Engine/source/EtCore/Util/InputManager.cpp:147–159  ·  view source on GitHub ↗

--------------------------------- InputManager::SetCursorShape Request changing the cursor shape

Source from the content-addressed store, hash-verified

145// Request changing the cursor shape
146//
147void InputManager::SetCursorShape(E_CursorShape const shape)
148{
149 if (shape != m_CurrentCursorShape)
150 {
151 m_CurrentCursorShape = shape;
152
153 ET_ASSERT(m_CursorShapeManager != nullptr, "Attempted changing the cursor shape but no I_CursorShapeManager was registered!");
154 if (!(m_CursorShapeManager->OnCursorResize(shape)))
155 {
156 LOG("InputManager::SetCursorShape > Failed to change the cursor shape!", LogLevel::Warning);
157 }
158 }
159}
160
161//---------------------------------
162// InputManager::CycleKeyState

Callers

nothing calls this directly

Calls 1

OnCursorResizeMethod · 0.80

Tested by

no test coverage detected