static void wrapper_glutJoystickFunc(unsigned int p1, int p2, int p3, int p4) { OS_ASSERT(instance); if(instance) { OS * os = instance->os; os->pushValueById(instance->glutJoystickFunc); os->pushNull(); os->pushNumber(p1); os->pushNumber(p2); os->pushNumber(p3); os->pushNumber(p4); os->call(4, 0); } }
static void wrapper_glutTimerFunc(int p1) { OS_ASSERT(instance); if(instance) { OS * os = instance->os; GlutFunc * timer = instance->getTimerById(p1); if(timer) { os->pushValueById(timer->func); os->pushNull(); timer->release(os); os->call(0, 0); } } }