Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

80 lines
2.2 KiB

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef OPTIONS_SUB_MOUSE_H
#define OPTIONS_SUB_MOUSE_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/PropertyPage.h>
class CCvarNegateCheckButton;
class CKeyToggleCheckButton;
class CCvarToggleCheckButton;
class CCvarSlider;
namespace vgui
{
class Label;
class Panel;
}
//-----------------------------------------------------------------------------
// Purpose: Mouse Details, Part of OptionsDialog
//-----------------------------------------------------------------------------
class COptionsSubMouse : public vgui::PropertyPage
{
DECLARE_CLASS_SIMPLE( COptionsSubMouse, vgui::PropertyPage );
public:
explicit COptionsSubMouse(vgui::Panel *parent);
~COptionsSubMouse();
virtual void OnResetData();
virtual void OnApplyChanges();
protected:
virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
MESSAGE_FUNC_PTR( OnControlModified, "ControlModified", panel );
MESSAGE_FUNC_PTR( OnTextChanged, "TextChanged", panel );
MESSAGE_FUNC_PTR( OnCheckButtonChecked, "CheckButtonChecked", panel )
{
OnControlModified( panel );
}
void UpdateSensitivityLabel();
void UpdateAccelerationLabel();
void UpdateJoystickPanels();
private:
CCvarNegateCheckButton *m_pReverseMouseCheckBox;
CCvarToggleCheckButton *m_pMouseFilterCheckBox;
CCvarToggleCheckButton *m_pMouseRawCheckBox;
vgui::CheckButton *m_pMouseAccelerationCheckBox;
CCvarToggleCheckButton *m_pJoystickCheckBox;
CCvarToggleCheckButton *m_pJoystickSouthpawCheckBox;
CCvarToggleCheckButton *m_pQuickInfoCheckBox;
CCvarToggleCheckButton *m_pReverseJoystickCheckBox;
CCvarSlider *m_pMouseSensitivitySlider;
vgui::TextEntry *m_pMouseSensitivityLabel;
CCvarSlider *m_pMouseAccelExponentSlider;
vgui::TextEntry *m_pMouseAccelExponentLabel;
CCvarSlider *m_pJoyYawSensitivitySlider;
vgui::Label *m_pJoyYawSensitivityPreLabel;
CCvarSlider *m_pJoyPitchSensitivitySlider;
vgui::Label *m_pJoyPitchSensitivityPreLabel;
};
#endif // OPTIONS_SUB_MOUSE_H