60 lines
1.7 KiB
C++
60 lines
1.7 KiB
C++
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// GENERATED CODE - do not edit (Generated by ddkit/genModelMsg)
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// HidJoystick.hpp (rmodel-msg)
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <tmsif/type/HidJoystick.hpp>
|
|
#include <tmsif/tmsif_export.hpp>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
|
|
namespace M_HidJoystick {
|
|
|
|
|
|
//
|
|
// Service
|
|
//
|
|
|
|
/// Service interface.
|
|
/// Contains operations that a client can command the Joystick Service to perform.
|
|
class TMSIF_EXPORT IService {
|
|
|
|
public:
|
|
virtual ~IService();
|
|
virtual void CmdIsJoystickAlive();
|
|
virtual void ConfigJoystickCurve(uint32_t KeyAxisIndex, std::string const& Curve, bool IsRemoved);
|
|
};
|
|
|
|
|
|
//
|
|
// Client
|
|
//
|
|
|
|
/// Client interface.
|
|
/// Contains operations reported by a Joystick Service.
|
|
class TMSIF_EXPORT IClient {
|
|
|
|
public:
|
|
virtual ~IClient();
|
|
virtual void EventButton(uint32_t ButtonIndex, std::string const& ButtonName, bool IsSelected);
|
|
virtual void EventIncrement(uint32_t Index, int32_t Steps);
|
|
virtual void ReportJoystickSettings(M_HidJoystick::JoystickSettingsType const& Settings);
|
|
virtual void ReportAxis(uint32_t KeyAxisIndex, double Value, bool IsRemoved);
|
|
virtual void ReportInputValue(uint32_t KeyValueInputIndex, M_Common::PropertyType const& Value, bool IsRemoved);
|
|
virtual void ReportMenuStatus(uint32_t KeyMenuIndex, bool IsActive, bool IsRemoved);
|
|
virtual void ReportJoystickCurve(uint32_t KeyAxisIndex, std::string const& Curve, bool IsRemoved);
|
|
};
|
|
|
|
|
|
} // namespace M_HidJoystick
|
|
|
|
|