summaryrefslogtreecommitdiffstats
path: root/game/code/input/steeringspring.h
blob: d28530f1c82cf8f904ea9f97ec86bed1d0b47c30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//=============================================================================
// Copyright (C) 2002 Radical Entertainment Ltd.  All rights reserved.
//
// File:        steeringspring.h
//
// Description: Blahblahblah
//
// History:     10/19/2002 + Created -- Cary Brisebois
//
//=============================================================================

#ifndef STEERINGSPRING_H
#define STEERINGSPRING_H

//========================================
// Nested Includes
//========================================
#include <radcontroller.hpp>
#include <input/forceeffect.h>

//========================================
// Forward References
//========================================

//=============================================================================
//
// Synopsis:    Blahblahblah
//
//=============================================================================

class SteeringSpring : public ForceEffect
{
public:
    SteeringSpring();
	virtual ~SteeringSpring();

    void OnInit();
    void SetCenterPoint( s8 degrees, u8 deadband ); //Where 0 is straight up.
#ifdef RAD_WIN32
    void SetSpringStrength( u16 strength );
#else
    void SetSpringStrength( u8 strength );
#endif
    void SetSpringCoefficient( s16 coeff );

private:

#ifdef RAD_WIN32
    DICONDITION m_conditon;
#endif
    //Prevent wasteful constructor creation.
	SteeringSpring( const SteeringSpring& steeringspring );
	SteeringSpring& operator=( const SteeringSpring& steeringspring );
};


#endif //STEERINGSPRING_H