Casio IT-2000D Manuel d'utilisateur Page 161

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 224
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 223 224

Commentaires sur ces manuels

Pas de commentaire