5 posts
Posted 22 November 2012 - 10:48 AM
I havea question is there an API that allows the shift button to be held and for the turtle to pick up a block while still holding shift?
3790 posts
Location
Lincoln, Nebraska
Posted 22 November 2012 - 10:51 AM
The os.pullEvent() will only detect when it is pressed. If a key is held down, it will just spam key events. You can do a little code-jiggery to add a timer to your own events. That way, you can gauge the time between key events, and if it's spamming key events, you can asume it's holding a key down.
No idea how to write that, but it's an idea.