1 /*---------------------------------------------------------------------------* 2 Project: KPAD Sample Program 3 File: main.h 4 Programmer: Keizo Ohta 5 Haruki Tojo 6 7 Copyright 2005-2008 Nintendo. All rights reserved. 8 9 These coded instructions, statements, and computer programs contain 10 proprietary information of Nintendo of America Inc. and/or Nintendo 11 Company Ltd., and are protected by Federal copyright law. They may 12 not be disclosed to third parties or copied or duplicated in any form, 13 in whole or in part, without the prior written consent of Nintendo. 14 *---------------------------------------------------------------------------*/ 15 16 #define KPAD_BUF_SIZE 16 17 18 /******************************************************************************* 19 Variable Declarations 20 *******************************************************************************/ 21 extern GXRenderModeObj *rmode_p ; 22 extern KPADUnifiedWpadStatus uniRingBufs[ WPAD_MAX_CONTROLLERS * KPAD_BUF_SIZE ] ; 23 extern KPADStatus kpads[ WPAD_MAX_CONTROLLERS ][ KPAD_BUF_SIZE * 2] ; 24 extern s32 kpad_reads ; 25 extern s32 kpad_err ; 26 27 extern PADStatus pads[ PAD_MAX_CONTROLLERS ] ; 28 extern PADStatus padsTrig[ PAD_MAX_CONTROLLERS ] ; 29 30 /******************************************************************************* 31 Function Declarations 32 *******************************************************************************/ 33 extern void* alloc32( u32 size ) ; 34 extern u8 free32 ( void *ptr ) ; 35 36 extern void sampling_callback( s32 chan ) ; 37 extern void dpd_callback ( s32 chan, s32 reason ) ; 38 extern void mpls_callback( s32 chan, s32 reason ) ; 39