JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onOrientationUpdate(JNIEnv * env, jobject obj, jfloat x, jfloat y, jfloat z) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnOrientationUpdate(x,y,z); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onTouch(JNIEnv * env, jobject obj, jint type, jfloat x, jfloat y, jint id, jfloat sizeX, jfloat sizeY) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnTouch(type,x,y,id,sizeX,sizeY); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onActivity(JNIEnv * env, jobject obj, int inVal) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->onActivityEvent(inVal); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onDeviceOrientationUpdate(JNIEnv * env, jobject obj, int orientation) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnDeviceOrientationUpdate(orientation); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onJoyMotion(JNIEnv * env, jobject obj, int deviceId, int axis, float value) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnJoyMotion(deviceId,axis,value); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onTrackball(JNIEnv * env, jobject obj, jfloat dx, jfloat dy) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnTrackball(dx,dy); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onKeyChange(JNIEnv * env, jobject obj, int code, bool down) { int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnKey(code,down); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onPoll(JNIEnv * env, jobject obj) { env->GetJavaVM(&gJVM); int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) nme::sStage->OnPoll(); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onResize(JNIEnv * env, jobject obj, jint width, jint height) { env->GetJavaVM(&gJVM); int top = 0; gc_set_top_of_stack(&top,true); __android_log_print(ANDROID_LOG_INFO, "Resize", "%p %d,%d", nme::sFrame, width, height); if (nme::sFrame) nme::sFrame->onResize(width,height); gc_set_top_of_stack(0,true); return nme::GetResult(); }
JAVA_EXPORT int JNICALL Java_org_haxe_nme_NME_onRender(JNIEnv * env, jobject obj) { env->GetJavaVM(&gJVM); int top = 0; gc_set_top_of_stack(&top,true); //double t0 = nme::GetTimeStamp(); //__android_log_print(ANDROID_LOG_INFO, "NME", "NME onRender: %p", nme::sStage ); if (nme::sStage) nme::sStage->OnRender(); //__android_log_print(ANDROID_LOG_INFO, "NME", "Haxe Time: %f", nme::GetTimeStamp()-t0); gc_set_top_of_stack(0,true); return nme::GetResult(); }
void _rtmidi_in_callback(double deltatime, std::vector<unsigned char> *message, void *userData) { int top = 0; gc_set_top_of_stack(&top, true); value ret = alloc_array(message->size()); for (int i = 0; i < message->size(); ++i) { val_array_set_i(ret, i, alloc_int((*message)[i])); } val_call1(callback_root->get(), ret); gc_set_top_of_stack(0,true); }
JAVA_EXPORT double JNICALL Java_org_haxe_nme_NME_getNextWake(JNIEnv * env, jobject obj) { env->GetJavaVM(&gJVM); int top = 0; gc_set_top_of_stack(&top,true); if (nme::sStage) { double delta = nme::sStage->GetNextWake()-nme::GetTimeStamp(); gc_set_top_of_stack(0,true); return delta; } gc_set_top_of_stack(0,true); return 3600*100000; }
AutoHaxe(const char *inMessage) { base = 0; message = inMessage; gc_set_top_of_stack(&base,true); //__android_log_print(ANDROID_LOG_VERBOSE, "OpenGL", "Enter %s %p", message, pthread_self()); }
extern "C" void hypsystem_networkinterface_onUpdate() { int top = 0; gc_set_top_of_stack(&top,true); val_call0(fOnEventListener->get()); }
~AutoHaxe() { //__android_log_print(ANDROID_LOG_VERBOSE, "OpenGL", "Leave %s %p", message, pthread_self()); gc_set_top_of_stack(0,true); }
~AutoHaxe() { gc_set_top_of_stack(0,true); }
AutoHaxe(const char *inMessage) { base = 0; message = inMessage; gc_set_top_of_stack(&base,true); }