
86
Example call
:
get_alpha_lock_state ( );
Includes
:
#include “LIB_CL.h ”
Description
:
This routine gets the current status, enable/disable, of the alphabet
key stroke processing. The default is enabled. When
“alphapurpose” is locked, the keypad status is only for English.
Returns
:
1, if alpha key is locked.
0, if alpha key is not locked.
_getchar
Purpose
:
Get one key stroke from the keyboard buffer.
Syntax
:
char _getchar(void);
Example call
:
c=_getchar ( );
if (c > 0) _printf(“Key %d pressed”,c);
else printf(“No key pressed”);
Includes
:
#include “LIB_CL.h ”
Description
:
The getchar function reads one key stroke from the keyboard
buffer and then removes the key stroke from the keyboard buffer.
It will pass the value back, and clear the buffer. If there is no any
key press before, it will pass NULL(0X00) back.
Returns
:
The getchar function returns the key stroke read from the keyboard
buffer. If the keyboard buffer is empty, a null character (0x00) is
returned. The keystroke returned is the ASCII code of the key
being pressed.
GetKeyClick
Purpose
:
Get current key click status
Syntax
:
int GetKeyClick(void);
Example call
:
state = GetKeyClick( );
Includes
:
#include “LIB_CL.h ”
Description
:
The function returns an integer indicates the key click staus.The
default is enabled.
Returns
:
1, if key click sound is enabled.
0, if key click sound is disabled.
_kbhit
Purpose
:
Check whether the keyboard buffer is empty.
Syntax
:
int _kbhit(void);
Example call
:
For ( ;!_kbhit( ); ); /*Waiting for any key be pressed*/
Includes
:
#include “LIB_CL.h ”
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...