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?
Shift API
Started by speedemon24, Nov 22 2012 10:48 AM
1 reply to this topic
#1
Posted 22 November 2012 - 10:48 AM
#2
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.
No idea how to write that, but it's an idea.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











