The optional parameter for getXBox360ControllerState is the ControllerID. LeftTrigger is some random variable name that's probably nil. Passing nil to the function results in some kind of error which CE silently ignores and returns nothing.
Read the documentation in celua.txt:
Quote:
getXBox360ControllerState(ControllerID OPTIONAL) : table - Fetches the state of the connected xbox controller. Returns a table containing the following fields on success:
...
LeftTrigger: Left trigger (integer ranging from 0 to 255)
...
_________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum