Update WinRT to new version 2.0.250303.1

PiperOrigin-RevId: 781075193
This commit is contained in:
Guogang Li
2025-07-09 08:58:00 -07:00
committed by Copybara-Service
parent 5e558cffc4
commit 8f14bd10fc
1395 changed files with 498490 additions and 61973 deletions
@@ -1,4 +1,4 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
#pragma once
#ifndef WINRT_Windows_Gaming_Input_0_H
@@ -9,9 +9,9 @@ WINRT_EXPORT namespace winrt::Windows::Devices::Power
}
WINRT_EXPORT namespace winrt::Windows::Foundation
{
template <typename T> struct __declspec(empty_bases) EventHandler;
template <typename T> struct WINRT_IMPL_EMPTY_BASES EventHandler;
struct EventRegistrationToken;
template <typename TSender, typename TResult> struct __declspec(empty_bases) TypedEventHandler;
template <typename TSender, typename TResult> struct WINRT_IMPL_EMPTY_BASES TypedEventHandler;
}
WINRT_EXPORT namespace winrt::Windows::Gaming::Input::ForceFeedback
{
@@ -246,6 +246,7 @@ WINRT_EXPORT namespace winrt::Windows::Gaming::Input
struct GamepadVibration;
struct RacingWheelReading;
struct UINavigationReading;
struct GamingInputPreviewContract;
}
namespace winrt::impl
{
@@ -335,6 +336,7 @@ namespace winrt::impl
template <> inline constexpr auto& name_v<winrt::Windows::Gaming::Input::IUINavigationController> = L"Windows.Gaming.Input.IUINavigationController";
template <> inline constexpr auto& name_v<winrt::Windows::Gaming::Input::IUINavigationControllerStatics> = L"Windows.Gaming.Input.IUINavigationControllerStatics";
template <> inline constexpr auto& name_v<winrt::Windows::Gaming::Input::IUINavigationControllerStatics2> = L"Windows.Gaming.Input.IUINavigationControllerStatics2";
template <> inline constexpr auto& name_v<winrt::Windows::Gaming::Input::GamingInputPreviewContract> = L"Windows.Gaming.Input.GamingInputPreviewContract";
template <> inline constexpr guid guid_v<winrt::Windows::Gaming::Input::IArcadeStick>{ 0xB14A539D,0xBEFB,0x4C81,{ 0x80,0x51,0x15,0xEC,0xF3,0xB1,0x30,0x36 } }; // B14A539D-BEFB-4C81-8051-15ECF3B13036
template <> inline constexpr guid guid_v<winrt::Windows::Gaming::Input::IArcadeStickStatics>{ 0x5C37B8C8,0x37B1,0x4AD8,{ 0x94,0x58,0x20,0x0F,0x1A,0x30,0x01,0x8E } }; // 5C37B8C8-37B1-4AD8-9458-200F1A30018E
template <> inline constexpr guid guid_v<winrt::Windows::Gaming::Input::IArcadeStickStatics2>{ 0x52B5D744,0xBB86,0x445A,{ 0xB5,0x9C,0x59,0x6F,0x0E,0x2A,0x49,0xDF } }; // 52B5D744-BB86-445A-B59C-596F0E2A49DF
@@ -365,7 +367,7 @@ namespace winrt::impl
template <> struct default_interface<winrt::Windows::Gaming::Input::UINavigationController>{ using type = winrt::Windows::Gaming::Input::IUINavigationController; };
template <> struct abi<winrt::Windows::Gaming::Input::IArcadeStick>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetButtonLabel(uint32_t, int32_t*) noexcept = 0;
virtual int32_t __stdcall GetCurrentReading(struct struct_Windows_Gaming_Input_ArcadeStickReading*) noexcept = 0;
@@ -373,7 +375,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IArcadeStickStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_ArcadeStickAdded(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_ArcadeStickAdded(winrt::event_token) noexcept = 0;
@@ -384,14 +386,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IArcadeStickStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall FromGameController(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Gaming::Input::IFlightStick>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_HatSwitchKind(int32_t*) noexcept = 0;
virtual int32_t __stdcall GetButtonLabel(uint32_t, int32_t*) noexcept = 0;
@@ -400,7 +402,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IFlightStickStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_FlightStickAdded(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_FlightStickAdded(winrt::event_token) noexcept = 0;
@@ -412,7 +414,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IGameController>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_HeadsetConnected(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_HeadsetConnected(winrt::event_token) noexcept = 0;
@@ -427,14 +429,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IGameControllerBatteryInfo>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall TryGetBatteryReport(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Gaming::Input::IGamepad>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Vibration(struct struct_Windows_Gaming_Input_GamepadVibration*) noexcept = 0;
virtual int32_t __stdcall put_Vibration(struct struct_Windows_Gaming_Input_GamepadVibration) noexcept = 0;
@@ -443,14 +445,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IGamepad2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetButtonLabel(uint32_t, int32_t*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Gaming::Input::IGamepadStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_GamepadAdded(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_GamepadAdded(winrt::event_token) noexcept = 0;
@@ -461,14 +463,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IGamepadStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall FromGameController(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Gaming::Input::IHeadset>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_CaptureDeviceId(void**) noexcept = 0;
virtual int32_t __stdcall get_RenderDeviceId(void**) noexcept = 0;
@@ -476,7 +478,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IRacingWheel>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_HasClutch(bool*) noexcept = 0;
virtual int32_t __stdcall get_HasHandbrake(bool*) noexcept = 0;
@@ -490,7 +492,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IRacingWheelStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_RacingWheelAdded(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_RacingWheelAdded(winrt::event_token) noexcept = 0;
@@ -501,14 +503,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IRacingWheelStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall FromGameController(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Gaming::Input::IRawGameController>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_AxisCount(int32_t*) noexcept = 0;
virtual int32_t __stdcall get_ButtonCount(int32_t*) noexcept = 0;
@@ -523,7 +525,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IRawGameController2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_SimpleHapticsControllers(void**) noexcept = 0;
virtual int32_t __stdcall get_NonRoamableId(void**) noexcept = 0;
@@ -532,7 +534,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IRawGameControllerStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_RawGameControllerAdded(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_RawGameControllerAdded(winrt::event_token) noexcept = 0;
@@ -544,7 +546,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IUINavigationController>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall GetCurrentReading(struct struct_Windows_Gaming_Input_UINavigationReading*) noexcept = 0;
virtual int32_t __stdcall GetOptionalButtonLabel(uint32_t, int32_t*) noexcept = 0;
@@ -553,7 +555,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IUINavigationControllerStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall add_UINavigationControllerAdded(void*, winrt::event_token*) noexcept = 0;
virtual int32_t __stdcall remove_UINavigationControllerAdded(winrt::event_token) noexcept = 0;
@@ -564,7 +566,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Gaming::Input::IUINavigationControllerStatics2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall FromGameController(void*, void**) noexcept = 0;
};