1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - WM - demos - dataShare-Model 3 File: key.h 4 5 Copyright 2006-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-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef __KEY_H__ 19 #define __KEY_H__ 20 21 #define KEY_REPEAT_START 25 // Number of frames until key repeat starts 22 #define KEY_REPEAT_SPAN 10 // Number of frames between key repeats 23 24 typedef struct KeyInfo 25 { 26 u16 cnt; // Unprocessed input value 27 u16 trg; // Press trigger input 28 u16 up; // Release trigger input 29 u16 rep; // Press and hold repeat input 30 } 31 KeyInfo; 32 33 extern void updateKeys(void); 34 extern KeyInfo *getKeyInfo(void); 35 36 #endif 37