| 572 | } |
| 573 | |
| 574 | void CInput::HandleTextEditingEvent(const char *pText, int Start, int Length) |
| 575 | { |
| 576 | if(pText[0] != '\0') |
| 577 | { |
| 578 | m_CompositionString = pText; |
| 579 | m_CompositionCursor = 0; |
| 580 | for(int i = 0; i < Start; i++) |
| 581 | { |
| 582 | m_CompositionCursor = str_utf8_forward(m_CompositionString.c_str(), m_CompositionCursor); |
| 583 | } |
| 584 | // Length is currently unused on Windows and will always be 0, so we don't support selecting composition text |
| 585 | AddTextEvent(""); |
| 586 | } |
| 587 | else |
| 588 | { |
| 589 | m_CompositionString = ""; |
| 590 | m_CompositionCursor = 0; |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | void CInput::SetCompositionWindowPosition(float X, float Y, float H) |
| 595 | { |
nothing calls this directly
no test coverage detected