mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-23 13:36:16 +02:00

- Removed unused/outdated stuff from libndsfpc + Added new examples for libndsfpc + Added working (I hope so...) makefile.fpc for all libndsfpc/libgbafpc examples git-svn-id: trunk@13217 -
28 lines
329 B
ObjectPascal
28 lines
329 B
ObjectPascal
program keyboardAsync;
|
|
|
|
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.
|