Keyboard input/Keypress check: Difference between revisions
m
Wee Basic has been added.
(Add task to ARM assembly Raspberry pi) |
Childishbeat (talk | contribs) m (Wee Basic has been added.) |
||
Line 1,191:
</lang>
This returns the key code of the key pressed which is the row number followed by the column number. The left up and down arrow keys are grouped with row 2 as 24, 25, and 26, and the down arrow key is grouped with row 3 as 34.
=={{header|Wee Basic}}==
This returns the key code of the key pressed.
<lang Wee Basic>let keycode=0
print 1 "Press any key and its key code will appear."
while keycode=0
let keycode=key()
wend
print 1 keycode
end</lang>
=={{header|XPL0}}==
|