The Dink Network

Reply to Re: wait_for__lbuttom

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 30th 2014, 07:05 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
How about this script:

void main( void )
{
  freeze(1);
  wait_for_button();
  say("ass, button &result",1);
  unfreeze(1);
}


That's right, no loop, no if, nothing. The point of wait_for_button() is that it waits until a button has been pressed. If you don't see "ass" with a button value after pressing D, that means the engine doesn't think a button has been pressed. If that's the case, then I guess the answer is "because apparently the engine doesn't work that way". If you *do* see "ass" with a button value. Well. Then you now know what value to check for if you press D