Paxar Gold 6037EX manual D R e s t o r e M o d e

Models: Gold 6037EX

1 230
Download 230 pages 30.9 Kb
Page 40
Image 40

k b d R e s t o r e M o d e

Description

Changes the keypad’s data entry mode to the one saved previously when the application called kbdGetMode.

Syntax

void kbdRestoreMode(int);

Parameters

1Numeric/Normal mode

2Upper-case Alpha mode

4Lower-case Alpha mode

Return Values

None

Example

#include <stdio.h> #include <conio.h> #include "mmsultra.h"

void main(void)

 

{

// Saved mode

int iSavedmode = 0;

int iInput = 0;

// Alpha key entered

iSavedmode = kbdGetMode();

// Save the current mode

 

// To Upper-case Alpha

kbdSetCaps();

printf("Press an alphabetic\nkey: "); // Test the mode while (_kbhit())

;

iInput = _getch();

printf("\nYou pressed %c\n", iInput);

// Return to prev. mode

kbdRestoreMode(iSavedmode);

4-4 Programmer’s Manual

Page 40
Image 40
Paxar Gold 6037EX manual D R e s t o r e M o d e