MCPcopy Create free account
hub / github.com/ddnet/ddnet / SetCursorOffset

Method SetCursorOffset

src/game/client/lineinput.cpp:161–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void CLineInput::SetCursorOffset(size_t Offset)
162{
163 m_SelectionStart = m_SelectionEnd = m_LastCompositionCursorPos = m_CursorPos = std::clamp<size_t>(Offset, 0, m_Len);
164 m_WasCursorChanged = true;
165}
166
167void CLineInput::SetSelection(size_t Start, size_t End)
168{

Callers 2

OnInputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected