2 BootMii - a Free Software replacement for the Nintendo/BroadOn bootloader.
5 Copyright (C) 2009 Andre Heider "dhewg" <dhewg@wiibrew.org>
6 Copyright (C) 2009 John Kelley <wiidev@kelley.ca>
7 Copyright (C) 2009 bLAStY <blasty@bootmii.org>
9 # This code is licensed to you under the terms of the GNU GPL, version 2;
10 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
16 #define PAD_LEFT 0x0001
17 #define PAD_RIGHT 0x0002
18 #define PAD_DOWN 0x0004
28 #define PAD_START 0x1000
29 #define PAD_ANY 0x1F7F
31 #define GPIO_POWER PAD_RIGHT
32 #define GPIO_RESET PAD_A
33 #define GPIO_EJECT PAD_START
43 void input_init(void);
45 u16 pad_read(GC_Pad *pad, int chan);