Casio IT-2000D Manual de usuario Pagina 161

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 224
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 160
161
Readout from Key Buffer
Acquires a key code or coordinates which have been acquired from the key buffer. If the buffer
contains neither a key code nor coordinates, NO_DATA will be returned. However, coordinate
values can be returned only if the coordinates input mode is set to “enable”.
SYNTAX
int KEY_Read (unsigned int *Keycode, KDC_POSINFO *Position);
INPUT
Keycode = Pointer to the area in which the read key code is stored
Position = Pointer to the KDC_POSINFO structure in which the read coordinates
are stored
typedef struct{
int status; /*status
*0 : DOWN_STATUS
*1 : RUN_STATUS
*2 : UP_STATUS
*3 : CANSEL_STATUS
This status arises when the power is off after the down
status is acquired and before the up status is acquired.
*/
int xpos; /* X coordinate */
int ypos; /* Y coordinate */
}KDC_POSINFO;
OUTPUT
= KDC_NONE (0) No data
= KDC_KEYCODE (1) A key code is present
= KDC_POSDATA (2) Coordinates are present
EXAMPLE
#include "padlib.h"
unsigned int Keycode;
POSITION Position;
int retcode;
retcode = KEY_Read (&Keycode,&Position);
Refer to “KEY_Scan” also.
Vista de pagina 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 223 224

Comentarios a estos manuales

Sin comentarios