📄 calc.h
字号:
/*************************************************************************
Calculation function key code define
*************************************************************************/
#define CALC_0 32
#define CALC_1 25
#define CALC_2 26
#define CALC_3 27
#define CALC_4 18
#define CALC_5 19
#define CALC_6 20
#define CALC_7 11
#define CALC_8 12
#define CALC_9 13
#define CALC_D0 33
#define CALC_DEC 34 /* '.' */
#define CALC_PLUS 14 /* '+' */
#define CALC_MINUS 21 /* '-' */
#define CALC_MUL 28 /* '*' */
#define CALC_DIV 35 /* '/' */
#define CALC_XCH 9 /* '-/+' The negative value and positive value exchange */
#define CALC_EQU 38 /* '=' */
#define CALC_EQU1 37 /* '=' */
#define CALC_CL 6 /* 'CL' CLEAR, clear the all status and data */
#define CALC_CE 7 /* 'CE' Clear the just input data, but the status still remain */
#define CALC_BS 8 /* 'BS' Backspace */
#define CALC_ST 31 /* 'ST' SUBTTL, exit this mode */
#define CALC_FD 1 /* 'FD' FEED, feed the paper */
/************************************************************************/
#define CALC_MODE 2 /* The working mode key */
/*************************************************************************
Calculation function status
*************************************************************************/
#define CALCM_NULL 0
#define CALCM_ADD 1
#define CALCM_SUB 2
#define CALCM_MUL 3
#define CALCM_DIV 4
#define CALCM_XCH 5
#define CALCM_PRI 6 /* The backup mode for the operations PRI */
/** The end **/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -