I haven't used MZX in at least a year and I am having trouble remembering some code.
Isn't there a way to give any particular key the same properties as Spacebar and Delete?
i.e. If keyq pressed "go"
Any help is much appreciated.
Page 1 of 1
if keypressed?
#2
Posted 07 December 2006 - 07:18 PM
Keys have numeric codes associated to them.
Say you want to test if key45 is pressed, then it's
if "key45" = 1 "laserbeam"
You can also use key_code or keycode or whatever it is (I think it's key_code) to see which key is currently pressed.
Say you want to test if key45 is pressed, then it's
if "key45" = 1 "laserbeam"
You can also use key_code or keycode or whatever it is (I think it's key_code) to see which key is currently pressed.
#3
Posted 07 December 2006 - 11:12 PM
Yes it is key_code.
To find out what the key_codes are and perhaps write down the ones you want to use, just have a blank board with 1 robot:
Easy.
To find out what the key_codes are and perhaps write down the ones you want to use, just have a blank board with 1 robot:
: "loop" * "&key_code&" wait 1 goto "loop"
Easy.
#4
Posted 15 December 2006 - 03:08 AM
This is very simple. Use key_code. Its very reliable and maps out most of the keys on all keyboards.
Share this topic:
Page 1 of 1

Help








