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.

39 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VGUI_DEFAULTINPUTSIGNAL_H
  8. #define VGUI_DEFAULTINPUTSIGNAL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "vgui_inputsignal.h"
  13. namespace vgui
  14. {
  15. // This class derives from vgui::InputSignal and implements empty defaults for all of its functions.
  16. class CDefaultInputSignal : public vgui::InputSignal
  17. {
  18. public:
  19. virtual void cursorMoved(int x,int y,Panel* panel) {}
  20. virtual void cursorEntered(Panel* panel) {}
  21. virtual void cursorExited(Panel* panel) {}
  22. virtual void mousePressed(MouseCode code,Panel* panel) {}
  23. virtual void mouseDoublePressed(MouseCode code,Panel* panel) {}
  24. virtual void mouseReleased(MouseCode code,Panel* panel) {}
  25. virtual void mouseWheeled(int delta,Panel* panel) {}
  26. virtual void keyPressed(KeyCode code,Panel* panel) {}
  27. virtual void keyTyped(KeyCode code,Panel* panel) {}
  28. virtual void keyReleased(KeyCode code,Panel* panel) {}
  29. virtual void keyFocusTicked(Panel* panel) {}
  30. };
  31. }
  32. #endif // VGUI_DEFAULTINPUTSIGNAL_H