00001 #ifndef PA_MOTIOn
00002 #define PA_MOTIOn
00003
00004 typedef struct {
00005 u8 Up, Down, Right, Left;
00006 } pamotionpad;
00007
00008
00009 typedef struct{
00010 s32 X, Y, Z, Zrot, Angle, Force;
00011 s32 Vx, Vy, Vz, Vzrot;
00012 pamotionpad Newpress, Held, Released;
00013 } motion_struct;
00014 extern motion_struct Motion;
00015
00016
00017 u8 PA_MotionInit(void);
00018
00019 u8 PA_CheckDSMotion(void);
00020
00021 extern u8 pamotiontopad;
00022
00023 extern inline void PA_MotionToPad(u8 enable){
00024 pamotiontopad = enable;
00025 }
00026
00027
00028
00052
00053
00054
00055
00056 #endif
00057
00058