Hi Gerry,
Yes, there is no GetInputPin function, because all inputs are mapped to virtual LED codes, so all inputs states can be queried via the LEDs.
Don't get confused that LEDs might be slower, because they have to be drawn on the screen, they are not, the digital states of the LEDs are read and updated in a 20msec loop.
You have to insert some sleep into the wait loop, because the GetLED function does not contains any sleep, so while your loop runs, while the statement is true can oveload your PC, because the code will run without taking any naps.
You can do it something like:
- Code: Select all
while(!AS3.GetLED(...))
{
Thread.Sleep(1);
}