This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
theoriginalbit's profile picture

[CC 1.4+][SSP && SMP] Turtle Key Events

Started by theoriginalbit, 20 March 2013 - 11:10 PM
theoriginalbit #1
Posted 21 March 2013 - 12:10 AM
ComputerCraft Version Information:
Tested in CC 1.51 and 1.4.<can't remember>.
Tested in SSP and SMP

Description of Bug:
Turtles receive the key event for escape unlike computers.

Steps to Reproduce Bug:
  1. Place down a Turtle
  2. Add and run the following code to the turtle
  3. 
    			e, k = os.pullEvent('key')
    			print(k)
    			
  4. Press escape to exit turtle GUI
  5. Look at turtle GUI and it will show it got an escape event (1)

Why I think its a bug:
Based off what Cloudy said in this topic a while ago, a computer does not, and should not know when someone has stopped looking/accessing it. Why should a turtle be any different.
PixelToast #2
Posted 21 March 2013 - 04:51 AM
o.o strange, ill test in 1.5 SSP and SMP
theoriginalbit #3
Posted 21 March 2013 - 05:03 AM
o.o strange, ill test in 1.5 SSP and SMP
Thanks.
theoriginalbit #4
Posted 21 March 2013 - 11:46 PM
Tested in SMP and in 1.4.something and it also has the same problem.
Cloudy #5
Posted 21 March 2013 - 11:49 PM
Fixed in next version.
theoriginalbit #6
Posted 21 March 2013 - 11:51 PM
Cool cool :)/> thanks Cloudy :)/>