wiimote.h
来自「linux下wii的鼠标驱动」· C头文件 代码 · 共 31 行
H
31 行
/* * Header file defining the interface for a wiimote. * Kendall Merriman */#ifndef _WIIMOTE_H_#define _WIIMOTE_H_#include <bluetooth/bluetooth.h>#define WIIMOTE_COMM_CONTROL 0x01#define WIIMOTE_COMM_INTERUPT 0x02typedef struct _wiimote{ int ctl_sock; int int_sock; bdaddr_t addr;} wiimote_t;int initialize_wiimote_support();void cleanup_wiimote_support();int find_wiimotes(wiimote_t* wiimotes, int num, int timeout);int connect_wiimotes(wiimote_t* wiimotes, int num);void disconnect_wiimotes(wiimote_t* wiimotes, int num);int wiimote_send(wiimote_t* dest, unsigned char* bytes, int len, int flags);int wiimote_recv(wiimote_t* src, unsigned char* bytes, int len, int flags);int wiimote_check_data(wiimote_t* wiim, int flags);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?