mql5/Include/Canvas/DX/DXInput.mqh

58 lines
4.9 KiB
MQL5

2025-08-05 01:57:33 -04:00
<EFBFBD><EFBFBD>//+------------------------------------------------------------------+
//| DXInput.mqh |
//| Copyright 2000-2025, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#include "DXHandle.mqh"
//+------------------------------------------------------------------+
//| Class CDXInput |
//+------------------------------------------------------------------+
class CDXInput : public CDXHandleShared
{
public:
//+------------------------------------------------------------------+
//| Destructor |
//+------------------------------------------------------------------+
virtual ~CDXInput(void)
{
Shutdown();
}
//+------------------------------------------------------------------+
//| Create a new input buffer |
//+------------------------------------------------------------------+
template<typename TInput>
bool Create(int context)
{
//--- shutdown input
Shutdown();
//--- save new context
m_context=context;