RetroArch
classic.h
Go to the documentation of this file.
1 /*
2  * wiiuse
3  *
4  * Written By:
5  * Michael Laforest < para >
6  * Email: < thepara (--AT--) g m a i l [--DOT--] com >
7  *
8  * Copyright 2006-2007
9  *
10  * This file is part of wiiuse.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  * $Header: /lvm/shared/ds/ds/cvs/devkitpro-cvsbackup/libogc/wiiuse/classic.h,v 1.1 2008-05-08 09:42:14 shagkur Exp $
26  *
27  */
28 
34 /* This source as presented is a modified version of original wiiuse for use
35  * with RetroArch, and must not be confused with the original software. */
36 
37 #ifndef CLASSIC_H_INCLUDED
38 #define CLASSIC_H_INCLUDED
39 
40 #include "wiiuse_internal.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 int classic_ctrl_handshake(struct wiimote_t* wm, struct classic_ctrl_t* cc, ubyte* data, uword len);
47 
49 
50 void classic_ctrl_event(struct classic_ctrl_t* cc, ubyte* msg);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif // CLASSIC_H_INCLUDED
void classic_ctrl_event(struct classic_ctrl_t *cc, ubyte *msg)
Handle classic controller event.
Definition: classic.c:155
Wiimote structure.
Definition: wiiuse.h:594
GLenum GLsizei len
Definition: glext.h:7389
void classic_ctrl_disconnected(struct classic_ctrl_t *cc)
The classic controller disconnected.
Definition: classic.c:142
Definition: ibxm.h:9
Classic controller expansion device.
Definition: wiiuse.h:459
General internal wiiuse stuff.
static const unsigned char msg[]
Definition: ccm.c:375
int classic_ctrl_handshake(struct wiimote_t *wm, struct classic_ctrl_t *cc, ubyte *data, uword len)
Handle the handshake data from the classic controller.
Definition: classic.c:61
unsigned char ubyte
Definition: wiiuse.h:187
unsigned short uword
Definition: wiiuse.h:189