implement analog input centering

This commit is contained in:
Glenn Maynard
2004-09-09 23:53:15 +00:00
parent 776c1609e3
commit 8f4f0e5c13
2 changed files with 127 additions and 98 deletions
+6 -1
View File
@@ -16,11 +16,16 @@ public:
virtual ~ScreenCenterImage();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void Update( float fDeltaTime );
virtual void HandleScreenMessage( const ScreenMessage SM );
void DrawPrimitives();
private:
BitmapText m_textInstructions;
enum Axis { AXIS_TRANS_X, AXIS_TRANS_Y, AXIS_SCALE_X, AXIS_SCALE_Y, NUM_AXES };
float m_fScale[NUM_AXES];
void Move( Axis axis, float fDeltaTime );
};
#endif