⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wiimotedata.h

📁 linux下wii的鼠标驱动
💻 H
字号:
/* * Lum, Darrell * Murphy, Ryan * CPE 454-01, Spring 07, Dr. Haungs * This file contains packet information that is passed between the Bluetooth * and Wiimote layers. */#ifndef WIIMOTEDATA_H#define WIIMOTEDATA_H#define MOTION_DEFAULT_SENSITIVITY		10.0f#define LED_ONE         0x10#define LED_TWO         0x20#define LED_THREE       0x40#define LED_FOUR        0x80#define BUTTON_TWO      0x0001#define BUTTON_ONE      0x0002#define BUTTON_B        0x0004#define BUTTON_A        0x0008#define BUTTON_MINUS    0x0010#define BUTTON_HOME     0x0080#define BUTTON_LEFT     0x0100#define BUTTON_RIGHT    0x0200#define BUTTON_DOWN     0x0400#define BUTTON_UP       0x0800#define BUTTON_PLUS     0x1000typedef struct WiimoteData{    /* The following members are related to updates. */    int x, y, z;    float ax, ay, az;    unsigned short ButtonField;    float pitch, roll, yaw;        float motion_sensitivity;        unsigned char calg_x, calg_y, calg_z;  //Acceleration calibration G    unsigned char calz_x, calz_y, calz_z;  //Acceleration calibration Zero        /* The following member are related to commands. */    unsigned char LEDField; //use LED masks above, 0 all off    unsigned char isRumble; //1 or 0 for rumble on and off} WiimoteData;#endif /*WIIMOTEDATA_H*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -