Keyboard input/Keypress check: Difference between revisions
m
Use inputReady instead of the deprecated function keypress
m (Use inputReady instead of the deprecated function keypress) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1,386:
=={{header|RPL}}==
≪ '''IF''' KEY '''THEN''' '
If no key is pressed and the <code>
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">
Line 1,443 ⟶ 1,444:
The library [http://seed7.sourceforge.net/libraries/keybd.htm keybd.s7i] defines
the file [http://seed7.sourceforge.net/libraries/keybd.htm#KEYBOARD KEYBOARD] and
the function [http://seed7.sourceforge.net/libraries/keybd.htm#
which can be used to determine if a key has been pressed.
<syntaxhighlight lang="seed7">if
writeln("A key was pressed");
else
Line 1,493 ⟶ 1,494:
=={{header|Wren}}==
<syntaxhighlight lang="
import "timer" for Timer
import "io" for Stdin, Stdout
|