![](/images/new-backgrounds/1186820/18682083x1.webp)
k b d S e t A l p h a
Description
Changes the keypad’s data entry mode to
Syntax
void kbdSetAlpha (void);
Parameters
None
Return Values
None
Example
#include <stdio.h> #include <conio.h> #include "mmsultra.h"
void main(void) |
|
{ | // Saved mode |
int iSavedmode = 0; | |
int iInput = 0; | // Key entered |
kbdSetAlpha(); | // Set |
iSavedmode = kbdGetMode(); | // Save the current mode |
kbdSetCaps(); | // Set |
printf("Press an alphabetic\nkey: "); // Test the mode | |
while (_kbhit()) |
|
; |
|
iInput = _getch(); |
|
printf("\nYou pressed %c\n", iInput); | // Return to prev. mode |
kbdRestoreMode(iSavedmode); |