Team Fortress 2 Source Code as on 22/4/2020
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.

28 lines
938 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef MOUSEMESSAGEFORWARDINGPANEL_H
  7. #define MOUSEMESSAGEFORWARDINGPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/Panel.h"
  12. //-----------------------------------------------------------------------------
  13. // Purpose: Invisible panel that forwards up mouse movement
  14. //-----------------------------------------------------------------------------
  15. class CMouseMessageForwardingPanel : public vgui::Panel
  16. {
  17. DECLARE_CLASS_SIMPLE( CMouseMessageForwardingPanel, vgui::Panel );
  18. public:
  19. CMouseMessageForwardingPanel( Panel *parent, const char *name );
  20. virtual void PerformLayout( void );
  21. virtual void OnMousePressed( vgui::MouseCode code );
  22. virtual void OnMouseDoublePressed( vgui::MouseCode code );
  23. };
  24. #endif //MOUSEMESSAGEFORWARDINGPANEL_H