summaryrefslogtreecommitdiffstats
path: root/game/code/input/steeringspring.h
diff options
context:
space:
mode:
authorSvxy <aidan61605@gmail.com>2023-05-31 23:31:32 +0200
committerSvxy <aidan61605@gmail.com>2023-05-31 23:31:32 +0200
commiteb4b3404aa00220d659e532151dab13d642c17a3 (patch)
tree7e1107c4995489a26c4007e41b53ea8d00ab2134 /game/code/input/steeringspring.h
downloadThe-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.gz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.bz2
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.lz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.xz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.zst
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.zip
Diffstat (limited to 'game/code/input/steeringspring.h')
-rw-r--r--game/code/input/steeringspring.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/game/code/input/steeringspring.h b/game/code/input/steeringspring.h
new file mode 100644
index 0000000..d28530f
--- /dev/null
+++ b/game/code/input/steeringspring.h
@@ -0,0 +1,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
+
+