#pragma region CPL License
/*
Nuclex Native Framework
Copyright (C) 2002-2013 Nuclex Development Labs
This library is free software; you can redistribute it and/or
modify it under the terms of the IBM Common Public License as
published by the IBM Corporation; either version 1.0 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
IBM Common Public License for more details.
You should have received a copy of the IBM Common Public
License along with this library
*/
#pragma endregion // CPL License
#ifndef NUCLEX_INPUT_DEVICES_TOUCHPANEL_H
#define NUCLEX_INPUT_DEVICES_TOUCHPANEL_H
#include "InputDevice.h"
#include "TouchPanelState.h"
#include "../Signals/sigslot.h"
namespace Nuclex { namespace Input { namespace Devices {
// ------------------------------------------------------------------------------------------- //
class VirtualTouchPanel; // This is an internal type. Ignore it!
// ------------------------------------------------------------------------------------------- //
/// Touch panel typically found on tablet PCs and mobile phones
class TouchPanel : public InputDevice {
friend VirtualTouchPanel;
/// Event that is fired when a new touch is registered
public: sigslot::signal3 Pressed;
/// Event that is fired when a touch moves to a different location
public: sigslot::signal3 Dragged;
/// Event that is fired when a touch stops
public: sigslot::signal1 Released;
/// Initializes a new touch panel
protected: TouchPanel() {}
/// Destroys the touch panel
public: virtual ~TouchPanel() {}
private: TouchPanel(const TouchPanel &);
private: TouchPanel &operator =(const TouchPanel &);
};
// ------------------------------------------------------------------------------------------- //
}}} // namespace Nuclex::Input::Devices
#endif // NUCLEX_INPUT_DEVICES_TOUCHPANEL_H