At first I had trouble learning this code [inkey$() to program keys to do certain commands](im new to programming) i finally figured it out and wanted to post it in case others needed it 
Language:
Dark Basic Pro
Code:
make object cube 1,100 do text 0,0,"1 = yrotate" text 0,10,"2 = xrotate" text 0,20,"3 = zrotate" if inkey$()="1" then yrotate object 1,object angle y(1)+0.3 if inkey$()="2" then xrotate object 1,object angle x(1)+0.3 if inkey$()="3" then zrotate object 1,object angle z(1)+0.3 loop
(1 vote)
Fri, 09/21/2007 - 19:03
i want to make it so that you have to press two keys simultaneously like ctrl+spacebar to execute a command. If anyone knows how just post a comment. thx!
Fri, 09/21/2007 - 23:00
Using the Scancode monitor, you can find the codes to use for the keystate function (no examples on here yet!)
You're interested in the result of the ScanCode printed line. Simply pass that number into the keystate function and you get true or false depending on if it is pressed.