This commit is contained in:
Paul 2001-06-28 14:42:30 +00:00
parent fea6ee4bad
commit 993b9c9fb1
2 changed files with 126 additions and 0 deletions

53
source/pad/vibe.cpp Normal file
View File

@ -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 */

73
source/pad/vibe.h Normal file
View File

@ -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 */