📄 keycodeevent.h
字号:
/*************************************************************
%
% Filename : KeyCodeEvent.h
% Project name : part of the lower key driver of GUI part of hyctron, manage the input key scanning
%
% Copyright 2003 Hyctron Electronic Design House,
% "Hyctron Electronic Design House" Shanghai, China.
% All rights are reserved. Reproduction in whole or in part is prohibited
% without the prior written consent of the copyright owner.
%
% Rev Date Author Comments
% (yymmdd)
% -------------------------------------------------------------
% 001 040128 HYCZJ Primary version
% -------------------------------------------------------------
%
% This source file contains the key process part of the GUI
%
****************************************************************/
#ifndef _KEY_CODEEVENT_H_
#define _KEY_CODEEVENT_H_
#ifdef __cplusplus
extern "C"
{
#endif
// the type of key event: normal, release
// "normal" is used to describe the repeat key event, which is coming
// after key is pressed but before key is released.
// "release" is used to describe the release event of key
#define cKEYB_EVENT_NORMAL 0
#define cKEYB_EVENT_RELEASE 1
// the value of key code, now, they are not depending one the hardware
typedef enum _Keyb_Code_e
{
Keyb_Code_Record = 0,
Keyb_Code_Power,
Keyb_Code_Up,
Keyb_Code_Down,
Keyb_Code_Prev,
Keyb_Code_Next,
Keyb_Code_Menu,
Keyb_Code_Eq,
Keyb_Code_Play,
Keyb_Code_Select,
Keyb_Code_Esc,
Keyb_Code_Repeat,
Keyb_Code_VolUp,
Keyb_Code_VolDown,
Keyb_Code_PlayMode,
Keyb_Code_Mode,
Keyb_Code_OLED,
Keyb_Code_Stop,
Keyb_Code_BatteryCharge,
Keyb_Code_USBUnconnect,
Keyb_Code_USBConnect,
Keyb_Code_Mp3FMSwitch,
//the following declarations are for the long press state of key
Keyb_Code_RecordLongPressed = 128 + Keyb_Code_Record,
Keyb_Code_PowerLongPressed,
Keyb_Code_UpLongPressed,
Keyb_Code_DownLongPressed,
Keyb_Code_PrevLongPressed,
Keyb_Code_NextLongPressed,
Keyb_Code_MenuLongPressed,
Keyb_Code_EqLongPressed,
Keyb_Code_PlayLongPressed,
Keyb_Code_SelectLongPressed,
Keyb_Code_EscLongPressed,
Keyb_Code_RepeatLongPressed,
Keyb_Code_VolUpLongPressed,
Keyb_Code_VolDownLongPressed,
Keyb_Code_PlayModeLongPressed,
Keyb_Code_ModeLongPressed,
Keyb_Code_OLEDLongPressed,
Keyb_Code_StopLongPressed
}Keyb_Code_e, *pKeyb_Code_e;
#ifdef __cplusplus
}
#endif
#endif
/*============================ History List ================================
1. Rev 1.00.01.0000, 2004/02/02 13:45 HYCZJ
============================================================================*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -