📄 tl_joy.h
字号:
/*
** thinlib (c) 2001 Matthew Conte (matt@conte.com)
**
**
** tl_joy.h
**
** DOS joystick reading defines / protos
**
** $Id: $
*/
#ifndef _TL_JOY_H_
#define _TL_JOY_H_
#define JOY_MAX_BUTTONS 4
typedef struct joy_s
{
int left, right, up, down;
int button[JOY_MAX_BUTTONS];
} joy_t;
extern void thin_joy_shutdown(void);
extern int thin_joy_init(void);
extern int thin_joy_read(joy_t *joy);
#endif /* !_TL_JOY_H_ */
/*
** $Log: $
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -