MCPcopy Create free account
hub / github.com/axmolengine/axmol / onClickTrackNode

Method onClickTrackNode

tests/cpp-tests/Source/TextInputTest/TextInputTest.cpp:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void TextFieldTTFDefaultTest::onClickTrackNode(bool bClicked, const Vec2& touchPos)
151{
152 auto pTextField = (TextFieldTTF*)_trackNode;
153 if (bClicked)
154 {
155 // TextFieldTTFTest be clicked
156 AXLOGD("TextFieldTTFDefaultTest:TextFieldTTF attachWithIME");
157 pTextField->attachWithIME();
158 }
159 else
160 {
161 // TextFieldTTFTest not be clicked
162 AXLOGD("TextFieldTTFDefaultTest:TextFieldTTF detachWithIME");
163 pTextField->detachWithIME();
164 }
165}
166
167void TextFieldTTFDefaultTest::onEnter()
168{

Callers 1

onTouchEndedMethod · 0.80

Calls 3

attachWithIMEMethod · 0.45
detachWithIMEMethod · 0.45
setCursorFromPointMethod · 0.45

Tested by

no test coverage detected