diff --git a/source/pad/vibe.cpp b/source/pad/vibe.cpp new file mode 100644 index 000000000..beb5bf535 --- /dev/null +++ b/source/pad/vibe.cpp @@ -0,0 +1,53 @@ +/*========================================================================= + + vibe.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "pad\vibe.h" + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ + + +/*=========================================================================== + end */ \ No newline at end of file diff --git a/source/pad/vibe.h b/source/pad/vibe.h new file mode 100644 index 000000000..fbbedadd6 --- /dev/null +++ b/source/pad/vibe.h @@ -0,0 +1,73 @@ +/*========================================================================= + + vibe.h + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PAD_VIBE_H__ +#define __PAD_VIBE_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef _GLOBAL_HEADER_ +#include "system\global.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CPadVibrationManager +{ +public: + void init(); + +private: + enum + { + MAX_VIBES_PER_PAD=10, + }; + + typedef struct + { + u8 m_active; + s16 *m_vibeData; + u8 m_ferocity; + } VIBE_CONTROL; + + + VIBE_CONTROLS m_vibeControls[2][MAX_VIBES_PER_PAD]; +} + + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __PAD_VIBE_H__ */ + +/*=========================================================================== + end */