mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Wiiuse:Backport some changes from the libogc version of wiiuse.
Still got a lot to back port :(. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4307 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
15
Externals/WiiUseSrc/Src/wiiuse.h
vendored
15
Externals/WiiUseSrc/Src/wiiuse.h
vendored
@ -116,6 +116,13 @@
|
||||
#define GUITAR_HERO_3_BUTTON_STRUM_DOWN 0x4000
|
||||
#define GUITAR_HERO_3_BUTTON_ALL 0xFEFF
|
||||
|
||||
/* guitar hero world tour touch bar codes */
|
||||
#define GUITAR_HERO_3_TOUCH_AVAILABLE 0x1000
|
||||
#define GUITAR_HERO_3_TOUCH_GREEN 0x1001
|
||||
#define GUITAR_HERO_3_TOUCH_RED 0x1002
|
||||
#define GUITAR_HERO_3_TOUCH_YELLOW 0x1004
|
||||
#define GUITAR_HERO_3_TOUCH_BLUE 0x1008
|
||||
#define GUITAR_HERO_3_TOUCH_ORANGE 0x1010
|
||||
|
||||
/* wiimote option flags */
|
||||
#define WIIUSE_SMOOTHING 0x01
|
||||
@ -393,6 +400,7 @@ typedef struct joystick_t {
|
||||
struct vec2b_t max; /**< maximum joystick values */
|
||||
struct vec2b_t min; /**< minimum joystick values */
|
||||
struct vec2b_t center; /**< center joystick values */
|
||||
struct vec2b_t pos; /**< raw position values */
|
||||
|
||||
float ang; /**< angle the joystick is being held */
|
||||
float mag; /**< magnitude of the joystick (range 0-1) */
|
||||
@ -445,11 +453,16 @@ typedef struct classic_ctrl_t {
|
||||
*/
|
||||
typedef struct guitar_hero_3_t {
|
||||
short btns; /**< what buttons have just been pressed */
|
||||
short btns_last; /**< what buttons have just been pressed */
|
||||
short btns_held; /**< what buttons are being held down */
|
||||
short btns_released; /**< what buttons were just released this */
|
||||
|
||||
byte wb_raw;
|
||||
float whammy_bar; /**< whammy bar (range 0-1) */
|
||||
|
||||
byte tb_raw;
|
||||
int touch_bar; /**< touch bar */
|
||||
|
||||
struct joystick_t js; /**< joystick calibration */
|
||||
} guitar_hero_3_t;
|
||||
|
||||
@ -473,6 +486,8 @@ typedef struct wii_board_t {
|
||||
short ctr[3];
|
||||
short cbl[3];
|
||||
short cbr[3]; /* /Calibration */
|
||||
float x;
|
||||
float y;
|
||||
} wii_board_t;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user