buttons.h
来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 51 行
H
51 行
/*************************************************************************
*
* Used with ARM IAR C/C++ Compiler.
*
* (c) Copyright IAR Systems 2006
*
* File name : buttons.h
* Description : buttons header file
*
* History :
* 1. Date : August 10, 2006
* Author : Stanimir Bonev
* Description : Create
*
* $Revision: 16170 $
**************************************************************************/
#include "includes.h"
#ifndef __BUTTONS_H
#define __BUTTONS_H
// Joystick definitions
#define JS_SELECT 1
#define JS_DOWN 2
#define JS_LEFT 4
#define JS_RIGHT 8
#define JS_UP 16
#define KEY_PB3 32
/*************************************************************************
* Function Name: ButtonsInit
* Parameters: none
* Return: none
* Description: Init Joystick and button
*
*************************************************************************/
void ButtonsInit (void);
/*************************************************************************
* Function Name: GetButtonsEvent
* Parameters: none
* Return: Int8U
* Description: Return buttons
*
*************************************************************************/
Int8U GetButtons (void);
#endif /* __BUTTONS_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?