diff options
| author | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
|---|---|---|
| committer | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
| commit | 0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch) | |
| tree | c831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/client/input.h | |
| parent | Updated the SDK with the latest code from the TF and HL2 branches. (diff) | |
| download | source-sdk-2013-master.tar.xz source-sdk-2013-master.zip | |
Diffstat (limited to 'mp/src/game/client/input.h')
| -rw-r--r-- | mp/src/game/client/input.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mp/src/game/client/input.h b/mp/src/game/client/input.h index e34b82db..2fa2cec3 100644 --- a/mp/src/game/client/input.h +++ b/mp/src/game/client/input.h @@ -99,7 +99,8 @@ public: virtual bool CAM_IsOrthographic() const; virtual void CAM_OrthographicSize( float& w, float& h ) const; - virtual float CAM_CapYaw( float fVal ) { return fVal; } + virtual float CAM_CapYaw( float fVal ) const { return fVal; } + virtual float CAM_CapPitch( float fVal ) const { return fVal; } #if defined( HL2_CLIENT_DLL ) // IK back channel info @@ -113,7 +114,7 @@ public: virtual bool EnableJoystickMode(); // Private Implementation -private: +protected: // Implementation specific initialization void Init_Camera( void ); void Init_Keyboard( void ); @@ -134,8 +135,8 @@ private: void GetAccumulatedMouseDeltasAndResetAccumulators( float *mx, float *my ); void GetMouseDelta( float inmousex, float inmousey, float *pOutMouseX, float *pOutMouseY ); void ScaleMouse( float *x, float *y ); - void ApplyMouse( QAngle& viewangles, CUserCmd *cmd, float mouse_x, float mouse_y ); - void MouseMove ( CUserCmd *cmd ); + virtual void ApplyMouse( QAngle& viewangles, CUserCmd *cmd, float mouse_x, float mouse_y ); + virtual void MouseMove ( CUserCmd *cmd ); // Joystick movement input helpers void ControllerMove ( float frametime, CUserCmd *cmd ); |