mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
180 lines
12 KiB
C++
180 lines
12 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Windows_Devices_Haptics_0_H
|
|
#define WINRT_Windows_Devices_Haptics_0_H
|
|
WINRT_EXPORT namespace winrt::Windows::Foundation
|
|
{
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Devices::Haptics
|
|
{
|
|
enum class VibrationAccessStatus : int32_t
|
|
{
|
|
Allowed = 0,
|
|
DeniedByUser = 1,
|
|
DeniedBySystem = 2,
|
|
DeniedByEnergySaver = 3,
|
|
};
|
|
struct IKnownSimpleHapticsControllerWaveformsStatics;
|
|
struct ISimpleHapticsController;
|
|
struct ISimpleHapticsControllerFeedback;
|
|
struct IVibrationDevice;
|
|
struct IVibrationDeviceStatics;
|
|
struct KnownSimpleHapticsControllerWaveforms;
|
|
struct SimpleHapticsController;
|
|
struct SimpleHapticsControllerFeedback;
|
|
struct VibrationDevice;
|
|
}
|
|
namespace winrt::impl
|
|
{
|
|
template <> struct category<winrt::Windows::Devices::Haptics::IKnownSimpleHapticsControllerWaveformsStatics>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::ISimpleHapticsController>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::ISimpleHapticsControllerFeedback>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::IVibrationDevice>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::IVibrationDeviceStatics>{ using type = interface_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::KnownSimpleHapticsControllerWaveforms>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::SimpleHapticsController>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::VibrationDevice>{ using type = class_category; };
|
|
template <> struct category<winrt::Windows::Devices::Haptics::VibrationAccessStatus>{ using type = enum_category; };
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::KnownSimpleHapticsControllerWaveforms> = L"Windows.Devices.Haptics.KnownSimpleHapticsControllerWaveforms";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::SimpleHapticsController> = L"Windows.Devices.Haptics.SimpleHapticsController";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback> = L"Windows.Devices.Haptics.SimpleHapticsControllerFeedback";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::VibrationDevice> = L"Windows.Devices.Haptics.VibrationDevice";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::VibrationAccessStatus> = L"Windows.Devices.Haptics.VibrationAccessStatus";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::IKnownSimpleHapticsControllerWaveformsStatics> = L"Windows.Devices.Haptics.IKnownSimpleHapticsControllerWaveformsStatics";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::ISimpleHapticsController> = L"Windows.Devices.Haptics.ISimpleHapticsController";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::ISimpleHapticsControllerFeedback> = L"Windows.Devices.Haptics.ISimpleHapticsControllerFeedback";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::IVibrationDevice> = L"Windows.Devices.Haptics.IVibrationDevice";
|
|
template <> inline constexpr auto& name_v<winrt::Windows::Devices::Haptics::IVibrationDeviceStatics> = L"Windows.Devices.Haptics.IVibrationDeviceStatics";
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Haptics::IKnownSimpleHapticsControllerWaveformsStatics>{ 0x3D577EF7,0x4CEE,0x11E6,{ 0xB5,0x35,0x00,0x1B,0xDC,0x06,0xAB,0x3B } }; // 3D577EF7-4CEE-11E6-B535-001BDC06AB3B
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Haptics::ISimpleHapticsController>{ 0x3D577EF9,0x4CEE,0x11E6,{ 0xB5,0x35,0x00,0x1B,0xDC,0x06,0xAB,0x3B } }; // 3D577EF9-4CEE-11E6-B535-001BDC06AB3B
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Haptics::ISimpleHapticsControllerFeedback>{ 0x3D577EF8,0x4CEE,0x11E6,{ 0xB5,0x35,0x00,0x1B,0xDC,0x06,0xAB,0x3B } }; // 3D577EF8-4CEE-11E6-B535-001BDC06AB3B
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Haptics::IVibrationDevice>{ 0x40F21A3E,0x8844,0x47FF,{ 0xB3,0x12,0x06,0x18,0x5A,0x38,0x44,0xDA } }; // 40F21A3E-8844-47FF-B312-06185A3844DA
|
|
template <> inline constexpr guid guid_v<winrt::Windows::Devices::Haptics::IVibrationDeviceStatics>{ 0x53E2EDED,0x2290,0x4AC9,{ 0x8E,0xB3,0x1A,0x84,0x12,0x2E,0xB7,0x1C } }; // 53E2EDED-2290-4AC9-8EB3-1A84122EB71C
|
|
template <> struct default_interface<winrt::Windows::Devices::Haptics::SimpleHapticsController>{ using type = winrt::Windows::Devices::Haptics::ISimpleHapticsController; };
|
|
template <> struct default_interface<winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback>{ using type = winrt::Windows::Devices::Haptics::ISimpleHapticsControllerFeedback; };
|
|
template <> struct default_interface<winrt::Windows::Devices::Haptics::VibrationDevice>{ using type = winrt::Windows::Devices::Haptics::IVibrationDevice; };
|
|
template <> struct abi<winrt::Windows::Devices::Haptics::IKnownSimpleHapticsControllerWaveformsStatics>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_Click(uint16_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_BuzzContinuous(uint16_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_RumbleContinuous(uint16_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_Press(uint16_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_Release(uint16_t*) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Devices::Haptics::ISimpleHapticsController>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_Id(void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_SupportedFeedback(void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_IsIntensitySupported(bool*) noexcept = 0;
|
|
virtual int32_t __stdcall get_IsPlayCountSupported(bool*) noexcept = 0;
|
|
virtual int32_t __stdcall get_IsPlayDurationSupported(bool*) noexcept = 0;
|
|
virtual int32_t __stdcall get_IsReplayPauseIntervalSupported(bool*) noexcept = 0;
|
|
virtual int32_t __stdcall StopFeedback() noexcept = 0;
|
|
virtual int32_t __stdcall SendHapticFeedback(void*) noexcept = 0;
|
|
virtual int32_t __stdcall SendHapticFeedbackWithIntensity(void*, double) noexcept = 0;
|
|
virtual int32_t __stdcall SendHapticFeedbackForDuration(void*, double, int64_t) noexcept = 0;
|
|
virtual int32_t __stdcall SendHapticFeedbackForPlayCount(void*, double, int32_t, int64_t) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Devices::Haptics::ISimpleHapticsControllerFeedback>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_Waveform(uint16_t*) noexcept = 0;
|
|
virtual int32_t __stdcall get_Duration(int64_t*) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Devices::Haptics::IVibrationDevice>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall get_Id(void**) noexcept = 0;
|
|
virtual int32_t __stdcall get_SimpleHapticsController(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <> struct abi<winrt::Windows::Devices::Haptics::IVibrationDeviceStatics>
|
|
{
|
|
struct __declspec(novtable) type : inspectable_abi
|
|
{
|
|
virtual int32_t __stdcall RequestAccessAsync(void**) noexcept = 0;
|
|
virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0;
|
|
virtual int32_t __stdcall FromIdAsync(void*, void**) noexcept = 0;
|
|
virtual int32_t __stdcall GetDefaultAsync(void**) noexcept = 0;
|
|
virtual int32_t __stdcall FindAllAsync(void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Haptics_IKnownSimpleHapticsControllerWaveformsStatics
|
|
{
|
|
[[nodiscard]] auto Click() const;
|
|
[[nodiscard]] auto BuzzContinuous() const;
|
|
[[nodiscard]] auto RumbleContinuous() const;
|
|
[[nodiscard]] auto Press() const;
|
|
[[nodiscard]] auto Release() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Haptics::IKnownSimpleHapticsControllerWaveformsStatics>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Haptics_IKnownSimpleHapticsControllerWaveformsStatics<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Haptics_ISimpleHapticsController
|
|
{
|
|
[[nodiscard]] auto Id() const;
|
|
[[nodiscard]] auto SupportedFeedback() const;
|
|
[[nodiscard]] auto IsIntensitySupported() const;
|
|
[[nodiscard]] auto IsPlayCountSupported() const;
|
|
[[nodiscard]] auto IsPlayDurationSupported() const;
|
|
[[nodiscard]] auto IsReplayPauseIntervalSupported() const;
|
|
auto StopFeedback() const;
|
|
auto SendHapticFeedback(winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback const& feedback) const;
|
|
auto SendHapticFeedback(winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback const& feedback, double intensity) const;
|
|
auto SendHapticFeedbackForDuration(winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback const& feedback, double intensity, winrt::Windows::Foundation::TimeSpan const& playDuration) const;
|
|
auto SendHapticFeedbackForPlayCount(winrt::Windows::Devices::Haptics::SimpleHapticsControllerFeedback const& feedback, double intensity, int32_t playCount, winrt::Windows::Foundation::TimeSpan const& replayPauseInterval) const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Haptics::ISimpleHapticsController>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Haptics_ISimpleHapticsController<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Haptics_ISimpleHapticsControllerFeedback
|
|
{
|
|
[[nodiscard]] auto Waveform() const;
|
|
[[nodiscard]] auto Duration() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Haptics::ISimpleHapticsControllerFeedback>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Haptics_ISimpleHapticsControllerFeedback<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Haptics_IVibrationDevice
|
|
{
|
|
[[nodiscard]] auto Id() const;
|
|
[[nodiscard]] auto SimpleHapticsController() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Haptics::IVibrationDevice>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Haptics_IVibrationDevice<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Windows_Devices_Haptics_IVibrationDeviceStatics
|
|
{
|
|
auto RequestAccessAsync() const;
|
|
auto GetDeviceSelector() const;
|
|
auto FromIdAsync(param::hstring const& deviceId) const;
|
|
auto GetDefaultAsync() const;
|
|
auto FindAllAsync() const;
|
|
};
|
|
template <> struct consume<winrt::Windows::Devices::Haptics::IVibrationDeviceStatics>
|
|
{
|
|
template <typename D> using type = consume_Windows_Devices_Haptics_IVibrationDeviceStatics<D>;
|
|
};
|
|
}
|
|
#endif
|