1 /*---------------------------------------------------------------------------* 2 Project: WPAD 3 File: wpadTrain.h 4 5 Copyright (C) 2006-2011 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 *---------------------------------------------------------------------------*/ 14 15 #ifndef __WPAD_TRAIN_H__ 16 #define __WPAD_TRAIN_H__ 17 18 #include <cafe/pads/wpad/wpad.h> 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 typedef struct WPADTRStatus 25 { 26 u16 button; // Or-ed WPAD_BUTTON_* bits 27 s16 accX; // -WPAD_ACC_RESO/2 <= accX < WPAD_ACC_RESO/2 28 s16 accY; // -WPAD_ACC_RESO/2 <= accY < WPAD_ACC_RESO/2 29 s16 accZ; // -WPAD_ACC_RESO/2 <= accZ < WPAD_ACC_RESO/2 30 DPDObject obj[WPAD_DPD_MAX_OBJECTS]; 31 32 u8 dev; // one of WPAD_DEV_* number 33 s8 err; // one of WPAD_ERR_* number 34 35 u16 trButton; // Or-ed WPAD_CL_BUTTON * bits 36 u8 brake; // 0 <= brake < 256 37 u8 mascon; // 0 <= mascon < 256 38 } WPADTRStatus; 39 40 41 #define WPAD_DEV_TRAIN 16 42 // data format of Core + Train 43 #define WPAD_FMT_TRAIN 10 // buttons, train 44 45 #ifdef __cplusplus 46 } 47 #endif 48 #endif // __WPAD_TRAIN_H__ 49