Casio IT-2000D User Manual

Page 164

Advertising
background image

164

Acquisition of Number of Keypad Being Displayed

Acquires the number of the currently displayed keypad.

SYNTAX

int KEY_GetPadState(void);

INPUT

None

OUTPUT

KDC_PADOFF (0) Non-display

KDC_PADENG (1) Being displayed

EXAMPLE

#include "padlib.h"

int retcode;

retcode = KEY_GetPadState();

Refer to “KEY_DisplayPad” also.

Setting Input Acceptance Mode

Used to specify the acceptance mode for key input.

SYNTAX

int KEY_SetInputMode(int mode);

INPUT

mode = Number of the displayed keypad

KDC_MODEDOWN (0) DOWN-acceptance (default value)

KDC_MODEUP (1) UP-acceptance

OUTPUT

= 0 Normal termination

= -1 Acceptance mode specification error

EXAMPLE

#include "padlib.h"

int retcode;

retcode = KEY_SetInputMode(MODE_xxx);

Advertising