This commit is contained in:
parent
fea6ee4bad
commit
993b9c9fb1
53
source/pad/vibe.cpp
Normal file
53
source/pad/vibe.cpp
Normal 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
73
source/pad/vibe.h
Normal 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 */
|
Loading…
Reference in New Issue
Block a user