diff --git a/toonz/sources/include/tools/inputstate.h b/toonz/sources/include/tools/inputstate.h new file mode 100644 index 0000000..5fd2109 --- /dev/null +++ b/toonz/sources/include/tools/inputstate.h @@ -0,0 +1,154 @@ +#pragma once + +#ifndef INPUTSTATE_INCLUDED +#define INPUTSTATE_INCLUDED + +// TnzTools includes +#include +#include + +// TnzCore includes +#include +#include + +// Qt includes +#include + +// std includes +#include + + +#undef DVAPI +#undef DVVAR +#ifdef TNZTOOLS_EXPORTS +#define DVAPI DV_EXPORT_API +#define DVVAR DV_EXPORT_VAR +#else +#define DVAPI DV_IMPORT_API +#define DVVAR DV_IMPORT_VAR +#endif + + +//=================================================================== + + +//***************************************************************************************** +// TInputState definition +//***************************************************************************************** + +class TInputState { +public: + typedef qint64 DeviceId; + typedef long long TouchId; + + typedef Qt::Key Key; + typedef TKeyHistoryT KeyHistory; + typedef KeyHistory::State KeyState; + + typedef Qt::MouseButton Button; + typedef TKeyHistoryT