1234567891011121314151617181920212223242526272829 |
- 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.
|