📄 wiimote.h
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -