Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
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.

38 lines
1.2 KiB

//========= Copyright <EFBFBD> 1996-2002, Valve LLC, All rights reserved. ============
9 years ago
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef VGUI_DEFAULTINPUTSIGNAL_H
3 years ago
#define VGUI_DEFAULTINPUTSIGNAL_H
#ifdef _WIN32
#pragma once
#endif
9 years ago
#include "VGUI_InputSignal.h"
9 years ago
namespace vgui
{
// This class derives from vgui::InputSignal and implements empty defaults for all of its functions.
class CDefaultInputSignal : public vgui::InputSignal
{
public:
virtual void cursorMoved( int x, int y, Panel *panel ) {}
virtual void cursorEntered( Panel *panel ) {}
9 years ago
virtual void cursorExited(Panel* panel) {}
virtual void mousePressed(MouseCode code,Panel* panel) {}
virtual void mouseDoublePressed(MouseCode code,Panel* panel) {}
virtual void mouseReleased(MouseCode code,Panel* panel) {}
virtual void mouseWheeled(int delta,Panel* panel) {}
virtual void keyPressed(KeyCode code,Panel* panel) {}
virtual void keyTyped(KeyCode code,Panel* panel) {}
virtual void keyReleased(KeyCode code,Panel* panel) {}
virtual void keyFocusTicked(Panel* panel) {}
};
}
9 years ago
#endif // VGUI_DEFAULTINPUTSIGNAL_H