From 9d3d920a489d4114714ce092c27abe5348b25f48 Mon Sep 17 00:00:00 2001 From: tantricity Date: Tue, 18 May 2010 20:22:16 +0000 Subject: [PATCH] add a couple more classic controller IDs git-svn-id: https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc@4103 258c5a1a-4f63-435d-9564-e8f6d34ab52c --- wiiuse/io.c | 2 ++ wiiuse/wiiuse_internal.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wiiuse/io.c b/wiiuse/io.c index 68e3cf2..1240fcc 100644 --- a/wiiuse/io.c +++ b/wiiuse/io.c @@ -98,6 +98,8 @@ void wiiuse_handshake_expansion(struct wiimote_t *wm,ubyte *data,uword len) case EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC: case EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC2: case EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC3: + case EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC4: + case EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC5: if(!classic_ctrl_handshake(wm,&wm->exp.classic,data,len)) return; break; case EXP_ID_CODE_GUITAR: diff --git a/wiiuse/wiiuse_internal.h b/wiiuse/wiiuse_internal.h index 93baefc..2bcfa34 100644 --- a/wiiuse/wiiuse_internal.h +++ b/wiiuse/wiiuse_internal.h @@ -169,6 +169,8 @@ #define EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC 0xa5a2a300 #define EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC2 0x98999900 #define EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC3 0xa0a1a000 +#define EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC4 0x8d8d8e00 +#define EXP_ID_CODE_CLASSIC_CONTROLLER_GENERIC5 0x93949400 #define EXP_ID_CODE_GUITAR 0xa4200103 #define EXP_ID_CODE_WIIBOARD 0xa4200402 #define EXP_ID_CODE_MOTION_PLUS 0xa4200405 -- 2.11.4.GIT