?? inputchar.c
字號:
//*************************************************************************************************
//* *
//* ******************************字母處理函數************************** *
//* *
//*************************************************************************************************
//*************************************************************************************************
//* *
//* ******************************頭文件及宏定義************************** *
//* *
//*************************************************************************************************
#include "CapProcess.h"
#include "SmallProcess.h"
//*************************************************************************************************
//* *
//* ********************************全局變量****************************** *
//* *
//*************************************************************************************************
extern unsigned char uc_ClickCount;
bit b_CapStatus=0; //大小寫模式:0--大寫;1--小寫。
//*************************************************************************************************
//* *
//* ********************************函數實現****************************** *
//* *
//*************************************************************************************************
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<大寫字母處理函數>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unsigned char ucCapProc(unsigned char ucKeyCode)
{
switch(uc_ClickCount%3)
{
case 0:return ucCapOne(ucKeyCode);break;
case 1:return ucCapTwo(ucKeyCode);break;
case 2:return ucCapThree(ucKeyCode);break;
default:break;
}
return ' ';
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<小寫字母處理函數>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unsigned char ucSmallProc(unsigned char ucKeyCode)
{
switch(uc_ClickCount%3)
{
case 0:return ucSmallOne(ucKeyCode);break;
case 1:return ucSmallTwo(ucKeyCode);break;
case 2:return ucSmallThree(ucKeyCode);break;
default:break;
}
return ' ';
}
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<獲取按鍵ASC字符>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unsigned char ucGetLetter(unsigned char ucKeyCode)
{
if(b_CapStatus==0) //切換到大寫輸入方式,返回字符ASC碼。
return ucCapProc(ucKeyCode);
else
return ucSmallProc(ucKeyCode); //切換到小寫輸入方式,返回字符ASC碼。
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -