MCPcopy Create free account
hub / github.com/9miao/CrossApp / getTouchFuncName

Function getTouchFuncName

scripting/javascript/bindings/ScriptingCore.cpp:127–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126//
127static void getTouchFuncName(int eventType, std::string &funcName) {
128// switch(eventType) {
129// case CCTOUCHBEGAN:
130// funcName = "onTouchBegan";
131// break;
132// case CCTOUCHENDED:
133// funcName = "onTouchEnded";
134// break;
135// case CCTOUCHMOVED:
136// funcName = "onTouchMoved";
137// break;
138// case CCTOUCHCANCELLED:
139// funcName = "onTouchCancelled";
140// break;
141// }
142
143}
144
145static void rootObject(JSContext *cx, JSObject *obj) {
146 JS_AddNamedObjectRoot(cx, &obj, "unnamed");

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected