ekey.cpp
来自「关于ETR100的设计」· C++ 代码 · 共 28 行
CPP
28 行
#include <stdio.h>
#include <conio.h>
#include <bios.h>
#include "etr100.h"
int main( )
{
int akey;
EnableKeypad( );
printf( "Please press key...\n" );
for( ; ; )
{
if( !kbhit( ) ) continue;
//akey = getch( );
akey = bioskey( 0 );
if (akey==0x30)//0xb30
{
printf( "%c %04x\n", akey, akey );
//read the keyboard until strike the ENTER
}
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?