Jump to content




Shift API


  • You cannot reply to this topic
1 reply to this topic

#1 speedemon24

  • New Members
  • 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?

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, 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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users