Exemple #1
0
static void key_short_press(void *arg) {
  lua_State *L = lua_getstate();
  NODE_DBG("key_short_press is called.\n");
  if (short_key_ref == LUA_NOREF) {
    default_short_press(arg);
    return;
  }
  lua_rawgeti(L, LUA_REGISTRYINDEX, short_key_ref);
  lua_call(L, 0, 0);
}
Exemple #2
0
void key_short_press(void *arg) {
  NODE_DBG("key_short_press is called.\n");
  if (short_key_ref == LUA_NOREF) {
    default_short_press(arg);
    return;
  }
  if (!gL)
    return;
  lua_rawgeti(gL, LUA_REGISTRYINDEX, short_key_ref);
  lua_call(gL, 0, 0);
}