Exemplo n.º 1
0
static int luaCB_post_levent_for_npt( lua_State* L )
{
    unsigned event_id,arg;

    event_id = levent_id_from_lua_arg(L,1);
    arg = luaL_optnumber(L, 2, 0);
    PostLogicalEventForNotPowerType(event_id,arg);
    return 0;
}
Exemplo n.º 2
0
int UnlockMF(void)
{
  if (!camera_info.state.mode_play) {
     int mf_lock;
     get_property_case(PROPCASE_FOCUS_MODE,&mf_lock,sizeof(mf_lock));
     if( mf_lock == 1 ) PostLogicalEventForNotPowerType(levent_id_for_name("PressSw1AndMF"),0);
     return(1);
  }
  return(0);
}