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.

72 lines
2.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef OPTIONS_SUB_MOUSE_H
  8. #define OPTIONS_SUB_MOUSE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyPage.h>
  13. class CCvarNegateCheckButton;
  14. class CKeyToggleCheckButton;
  15. class CCvarToggleCheckButton;
  16. class CCvarSlider;
  17. namespace vgui
  18. {
  19. class Label;
  20. class Panel;
  21. }
  22. //-----------------------------------------------------------------------------
  23. // Purpose: Mouse Details, Part of OptionsDialog
  24. //-----------------------------------------------------------------------------
  25. class COptionsSubMouse : public vgui::PropertyPage
  26. {
  27. DECLARE_CLASS_SIMPLE( COptionsSubMouse, vgui::PropertyPage );
  28. public:
  29. COptionsSubMouse(vgui::Panel *parent);
  30. ~COptionsSubMouse();
  31. virtual void OnResetData();
  32. virtual void OnApplyChanges();
  33. protected:
  34. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  35. private:
  36. MESSAGE_FUNC_PTR( OnControlModified, "ControlModified", panel );
  37. MESSAGE_FUNC_PTR( OnTextChanged, "TextChanged", panel );
  38. MESSAGE_FUNC_PTR( OnCheckButtonChecked, "CheckButtonChecked", panel )
  39. {
  40. OnControlModified( panel );
  41. }
  42. void UpdateSensitivityLabel();
  43. void UpdateJoystickPanels();
  44. CCvarNegateCheckButton *m_pReverseMouseCheckBox;
  45. CCvarToggleCheckButton *m_pMouseFilterCheckBox;
  46. CCvarToggleCheckButton *m_pJoystickCheckBox;
  47. CCvarToggleCheckButton *m_pJoystickSouthpawCheckBox;
  48. CCvarToggleCheckButton *m_pQuickInfoCheckBox;
  49. CCvarToggleCheckButton *m_pReverseJoystickCheckBox;
  50. CCvarSlider *m_pMouseSensitivitySlider;
  51. vgui::TextEntry *m_pMouseSensitivityLabel;
  52. CCvarSlider *m_pJoyYawSensitivitySlider;
  53. vgui::Label *m_pJoyYawSensitivityPreLabel;
  54. CCvarSlider *m_pJoyPitchSensitivitySlider;
  55. vgui::Label *m_pJoyPitchSensitivityPreLabel;
  56. };
  57. #endif // OPTIONS_SUB_MOUSE_H