cwiid 开源项目教程
cwiidLinux Nintendo Wiimote interface项目地址:https://gitcode.com/gh_mirrors/cw/cwiid
1. 项目的目录结构及介绍
cwiid 项目的目录结构如下:
cwiid/
├── AUTHORS
├── COPYING
├── ChangeLog
├── INSTALL
├── Makefile.am
├── NEWS
├── README
├── aclocal.m4
├── compile
├── config.guess
├── config.sub
├── configure
├── configure.ac
├── depcomp
├── install-sh
├── missing
├── py-compile
├── src/
│ ├── Makefile.am
│ ├── bluetooth.c
│ ├── bluetooth.h
│ ├── cwiid.c
│ ├── cwiid.h
│ ├── cwiid_check.c
│ ├── cwiid_check.h
│ ├── cwiid_internal.h
│ ├── ext.c
│ ├── ext.h
│ ├── led.c
│ ├── led.h
│ ├── libwminput.c
│ ├── libwminput.h
│ ├── mevents.c
│ ├── mevents.h
│ ├── mesg.c
│ ├── mesg.h
│ ├── rpt.c
│ ├── rpt.h
│ ├── state.c
│ ├── state.h
│ ├── util.c
│ ├── util.h
│ └── wiimote.c
├── wminput/
│ ├── Makefile.am
│ ├── README
│ ├── config.c
│ ├── config.h
│ ├── config_parser.c
│ ├── config_parser.h
│ ├── devices/
│ ├── event.c
│ ├── event.h
│ ├── ext.c
│ ├── ext.h
│ ├── led.c
│ ├── led.h
│ ├── mevent.c
│ ├── mevent.h
│ ├── plugins/
│ ├── rpt.c
│ ├── rpt.h
│ ├── state.c
│ ├── state.h
│ ├── util.c
│ ├── util.h
│ └── wiimote.c
└── wmgui/
├── Makefile.am
├── README
├── callbacks.c
├── callbacks.h
├── interface.c
├── interface.h
├── main.c
├── support.c
├── support.h
├── wiimote.c
└── wiimote.h
目录结构介绍
src/
: 包含项目的主要源代码文件,如蓝牙通信、Wiimote 控制等。wminput/
: 包含用于配置和处理 Wiimote 输入的代码。wmgui/
: 包含用于图形用户界面的代码。
2. 项目的启动文件介绍
项目的启动文件主要位于 src/
目录下,其中 wiimote.c
是主要的启动文件。该文件负责初始化 Wiimote 连接并处理各种事件。
启动文件介绍
wiimote.c
: 主要负责 Wiimote 的初始化和事件处理。
3. 项目的配置文件介绍
项目的配置文件主要位于 wminput/
目录下,其中 config.c
和 config_parser.c
是主要的配置文件处理代码。
配置文件介绍
config.c
: 负责读取和解析配置文件。config_parser.c
: 负责配置文件的解析逻辑。
以上是 cwiid 开源项目的目录结构、启动文件和配置文件的介绍。希望这些信息能帮助你更好地理解和使用该项目。
cwiidLinux Nintendo Wiimote interface项目地址:https://gitcode.com/gh_mirrors/cw/cwiid