mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-14 03:26:10 +02:00
30 lines
345 B
ObjectPascal
30 lines
345 B
ObjectPascal
program keyboardAsync;
|
|
|
|
{$mode objfpc}
|
|
|
|
uses
|
|
ctypes, nds9;
|
|
|
|
var
|
|
key: integer;
|
|
|
|
begin
|
|
consoleDemoInit(); //setup the sub screen for printing
|
|
|
|
keyboardDemoInit();
|
|
|
|
keyboardShow();
|
|
|
|
while true do
|
|
begin
|
|
|
|
key := keyboardUpdate();
|
|
|
|
if (key > 0) then
|
|
iprintf('%c', key);
|
|
|
|
swiWaitForVBlank();
|
|
end;
|
|
|
|
end.
|