#ifndef IEvents_HPP_INCLUDED #define IEvents_HPP_INCLUDED /* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (c) 2018-2021 3Dconnexion. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program 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 GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ /** * @file IEvents.hpp * @brief The events interface. */ #include //stdlib #include namespace TDx { namespace SpaceMouse { namespace Navigation3D { /// /// The Events interface /// class IEvents { public: /// /// Is called when the user invokes an application command from the SpaceMouse. /// /// The id of the command to invoke. /// The result of the function: 0 = no error, otherwise <0. virtual long SetActiveCommand(std::string commandId) = 0; /// /// Is called when the navigation settings change. /// /// The change count. /// 0 = no error, otherwise <0. virtual long SetSettingsChanged(long count) = 0; /// /// Is invoked when the user releases a key on the 3D Mouse, which has been programmed to send a /// virtual key code. /// /// The virtual key code of the key pressed. /// 0 = no error, otherwise <0. virtual long SetKeyPress(long vkey) = 0; /// /// Is invoked when the user releases a key on the 3D Mouse, which has been programmed to send a /// virtual key code. /// /// The virtual key code of the key released. /// 0 = no error, otherwise <0. virtual long SetKeyRelease(long vkey) = 0; }; } // namespace Navigation3D } // namespace SpaceMouse } // namespace TDx #endif // IEvents_HPP_INCLUDED