1 /*---------------------------------------------------------------------------* 2 Project: Revolution OS - WPAD 3 File: wpadTrain.h 4 5 Copyright 2006 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 $Log: wpadTrain.h,v $ 14 Revision 1.2 2007/02/14 02:35:36 tojo 15 (none) 16 17 Revision 1.1.2.1 2007/02/14 02:33:29 tojo 18 Initial check-in. 19 20 Revision 1.1 2006/12/12 07:58:19 tojo 21 initial check-in. 22 23 $NoKeywords: $ 24 *---------------------------------------------------------------------------*/ 25 26 #ifndef __WPAD_TRAIN_H__ 27 #define __WPAD_TRAIN_H__ 28 29 #include <revolution/wpad.h> 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 typedef struct WPADTRStatus 36 { 37 u16 button; // Or-ed WPAD_BUTTON_* bits 38 s16 accX; // -WPAD_ACC_RESO/2 <= accX < WPAD_ACC_RESO/2 39 s16 accY; // -WPAD_ACC_RESO/2 <= accY < WPAD_ACC_RESO/2 40 s16 accZ; // -WPAD_ACC_RESO/2 <= accZ < WPAD_ACC_RESO/2 41 DPDObject obj[WPAD_DPD_MAX_OBJECTS]; 42 43 u8 dev; // one of WPAD_DEV_* number 44 s8 err; // one of WPAD_ERR_* number 45 46 u16 trButton; // Or-ed WPAD_CL_BUTTON * bits 47 u8 brake; // 0 <= brake < 256 48 u8 mascon; // 0 <= mascon < 256 49 } WPADTRStatus; 50 51 52 #define WPAD_DEV_TRAIN 16 53 // data format of Core + Train 54 #define WPAD_FMT_TRAIN 10 // buttons, train 55 56 #ifdef __cplusplus 57 } 58 #endif 59 #endif // __WPAD_TRAIN_H__ 60