166
Acquisition of Coordinates Input Mode
Acquires the coordinates input mode currently set.
SYNTAX
int KEY_GetCoordinateMode(void);
INPUT
None
OUTPUT
0 Does not input coordinates.
1 Inputs coordinates.
EXAMPLE
#include "padlib.h"
int retcode;
retcode = KEY_GetCoordinateMode();
Refer to “KEY_SetCoordinateMode” also.
Registering Enhanced Keypad
This function is used to assign various eanhanced keys. By specifying the desired display images
and key codes to be used as the enhanced keypad the user can create a custom keypad.
SYNTAX
int KEY_SetExtKey(int keyno, KEYLIST *keylist);
INPUT
keyno = Enhanced key number
KDC_EXTKEY1(1) Enhanced key 1
KDC_EXTKEY2(2) Enhanced key 2
keylist = list of replaceable keys
typedef struct{
int data_cnt; /*Number of replaced keys*/
KDC_EXTKEYINFO far *keyinfo;
/*Table of replaceable key information */
}KDC_EXTKEYLIST;
typedef struct{
unsigned int keycode; /* Key code to be set */
int change_position; /* Place of replacement
(1 to 48) */
char far *image_adr; /* Button display data(32 x 24
bits) */
}KDC_EXTKEYINFO;