Files
harbour-core/contrib/hbnf/tests/scancode.prg
Przemysław Czerpak 96ca3fe470 2014-01-21 20:41 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* Makefile
  * config/*
  * contrib/*
  * doc/*
  * extras/*
  * include/*
  * lib/*
  * package/*
  * src/*
  * tests/*
  * utils/*
    * removed empty lines left after removed '$' + 'Id' + '$' identifiers
2014-01-21 20:41:05 +01:00

21 lines
392 B
Plaintext

#require "hbnf"
#define SCANCODE_ESCAPE ( hb_BChar( 27 ) + hb_BChar( 1 ) )
PROCEDURE Main()
LOCAL cKey
CLS
? "Press any key, ESCape to exit:"
DO WHILE .T.
cKey := ft_ScanCode()
? Str( hb_BCode( hb_BSubStr( cKey, 1, 1 ) ), 3 ) + ", " + Str( hb_BCode( hb_BSubStr( cKey, 2, 1 ) ), 3 )
IF cKey == SCANCODE_ESCAPE
EXIT
ENDIF
ENDDO
RETURN