1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - GX - demos - UnitTours/DEMOLib 3 File: DEMOKey.h 4 5 Copyright 2003-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-17#$ 14 $Rev: 8556 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef DEMO_KEY_H_ 18 #define DEMO_KEY_H_ 19 #ifdef SDK_TWL 20 #include <twl.h> 21 #else 22 #include <nitro.h> 23 #endif 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 typedef struct 30 { 31 u16 trigger; 32 u16 press; 33 } 34 DEMOKeyWork; 35 36 extern DEMOKeyWork gKeyWork; 37 void DEMOReadKey(void); 38 39 #define DEMO_IS_TRIG(key) (gKeyWork.trigger & (key)) 40 #define DEMO_IS_PRESS(key) (gKeyWork.press & (key)) 41 42 #ifdef __cplusplus 43 }/* extern "C" */ 44 #endif 45 46 #endif /* DEMO_KEY_H_ */ 47