fpc/packages/libndsfpc/examples/input/keyboard/keyboard_async/keyboardAsync.pp
Legolas 3f9327d340 * NDS: updated the rtl, libnds and fixed the examples. Now it should work fine with devkitARM r26
- Removed (again) old libgba examples

git-svn-id: trunk@13585 -
2009-08-23 13:57:45 +00:00

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.