Casio IT-2000D PDAs & Smartphones User Manual


 
168
EXAMPLE
#include “padlib.h”
KEYINFO keydata[10];
KEYLIST keylist;
int retcode, i;
for (i = 0; i < countof(keydata); i++) {
keydata[i].keycode = xxxx;
keydata[i].change_position = xxxx;
keydata[i].image_adr = xxxx;
}
keylist.keyinfo = keydata;
keylist.data_cnt = countof(keydata);
retcode = KEY_SetExtKey(KDC_EXTKEY1, &keylist);
Refer to “KEY_DelExtKey” also.
Note:
If the key list includes any invalid data, no error results. Only the data pieces that can be registered
will be registered