![](/images/new-backgrounds/1186820/18682079x1.webp)
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
2
4
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 |
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);