fpc/packages/libndsfpc/examples/input/keyboard/keyboard_async/keyboardAsync.pp
Legolas d2dabe9a33 * updated nds/gba linker scripts and reverted some changes for 2.2.4a release
- 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 -
2009-05-31 12:15:24 +00:00

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.