ACR89U-A1 – Reference Manual
Version 1.04
www.acs.com.hk
Page 52 of 57
Example: (
Not available for preliminary API
)
4.2.5.3. AS_GetKeyInput
This function enables key input on the ACR89. This can be single key input or string input depending
on the options set in the
KEYPADINPUT
structure. The pressed keys will be returned in the following
format:
Mode
Key
Value
Numeric
0 ~ 9
0 ~ 9
Alphanumeric
0 ~ 9
ASCII code
All modes
Clear
0x10h
Enter
0x0Dh
F1
0x3Dh
F2
0x3Eh
F3
0x3Fh
F4
0x0Ch
Table 3
: Keypad Input Format
Notes
:
When a function key is pressed while in string input mode, the input is cancelled and the function
code is returned instead.
In string input mode, Enter will return the keys pressed and Clear will clear the last entered key.
In string input more, when the inputted string has been cleared completely, AS_KeyInput will return
with an empty string.
The direction keys will never be returned, but are only used for navigation of the cursor on the ACR89
LCD screen.
AS_STATUS AS_DECL
AS_GetKeyInput
(
IN INT nDevId,
IN PKEYPADINPUT pKeypadInput,
OUT PDATABLOCK pDataBlock);
N/A