Your GetXin function is incorrect
your code
function GetXin(Xinput)
   local hreg = mc.mcRegGetHandle(mInst , string.format("mcX360_LUA/%s") , Xinput)
   return mc.mcRegGetHandle(hreg) -- This line is wrong
end
code should be
function GetXin(xinput)
	local hreg = mc.mcRegGetHandle(inst, string.format("mcX360_LUA/%s", xinput))
	return mc.mcRegGetValue(hreg) -- or return mc.mcRegGetValueLong(hreg)
end
DazTheGas
Dear Sir 
I change it and still, I can not get the feed in the stateusList
------- Declaer local---------------
local mInst = mc.mcGetInstance()
local Xenable= 0
-------------- Ps3 Init Panel------------
Ps3_Penal = wx.wxPanel( wx.NULL , wx.wxID_ANY , wx.wxDefaultPosition , wx.wxDefaultSize)
Ps3_Timer = wx.wxTimer (Ps3_Penal)
Ps3_Timer : Start(100)
----------- Fauntion----------------
function GetXin(xinput)
        local hreg = mc.mcRegGetHandle(inst, string.format("mcX360_LUA/%s", xinput))
        return mc.mcRegGetValueLong(hreg)
    end
------------Event Timers-------------
Ps3_Penal : Connect (wx.wxEVT_TIMER , function(event)      
      if GetXin("LTR_Val") > 150 and Xenable == 0 then
         Xenable = 1
         mc.mcCntlSetLastError(mInst , "Ps3 Running")         
      elseif GetXin ("LTR_Val") < 50 and Xenable == 1 then
         Xenable =0
         mc.mcCntlSetLastError(mInst , "Ps3 Stopped")         
      end               
   end   )