Commit 1f694c7f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

include: Add Windows.Gaming.Input.IGameControllerBatteryInfo interface definition.

parent e1b8de1a
...@@ -32,6 +32,7 @@ import "windows.foundation.idl"; ...@@ -32,6 +32,7 @@ import "windows.foundation.idl";
import "windows.devices.haptics.idl"; import "windows.devices.haptics.idl";
import "windows.gaming.input.forcefeedback.idl"; import "windows.gaming.input.forcefeedback.idl";
import "windows.system.idl"; import "windows.system.idl";
import "windows.devices.power.idl";
#define DO_NO_IMPORTS #define DO_NO_IMPORTS
#include "windows.gaming.input.idl" #include "windows.gaming.input.idl"
......
...@@ -777,6 +777,7 @@ SOURCES = \ ...@@ -777,6 +777,7 @@ SOURCES = \
windot11.h \ windot11.h \
windows.devices.enumeration.idl \ windows.devices.enumeration.idl \
windows.devices.haptics.idl \ windows.devices.haptics.idl \
windows.devices.power.idl \
windows.foundation.collections.idl \ windows.foundation.collections.idl \
windows.foundation.idl \ windows.foundation.idl \
windows.gaming.input.custom.idl \ windows.gaming.input.custom.idl \
......
/*
* Copyright 2022 Rémi Bernon for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifdef __WIDL__
#pragma winrt ns_prefix
#endif
import "inspectable.idl";
import "windows.foundation.idl";
namespace Windows.Devices.Power {
interface IBatteryReport;
runtimeclass BatteryReport;
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
threading(both)
]
runtimeclass BatteryReport
{
[default] interface Windows.Devices.Power.IBatteryReport;
}
}
...@@ -29,6 +29,7 @@ import "windows.foundation.idl"; ...@@ -29,6 +29,7 @@ import "windows.foundation.idl";
import "windows.devices.haptics.idl"; import "windows.devices.haptics.idl";
import "windows.gaming.input.forcefeedback.idl"; import "windows.gaming.input.forcefeedback.idl";
import "windows.system.idl"; import "windows.system.idl";
import "windows.devices.power.idl";
#endif #endif
namespace Windows.Gaming.Input { namespace Windows.Gaming.Input {
...@@ -320,6 +321,15 @@ namespace Windows.Gaming.Input { ...@@ -320,6 +321,15 @@ namespace Windows.Gaming.Input {
} }
[ [
contract(Windows.Foundation.UniversalApiContract, 4.0),
uuid(dcecc681-3963-4da6-955d-553f3b6f6161)
]
interface IGameControllerBatteryInfo : IInspectable
{
HRESULT TryGetBatteryReport([out, retval] Windows.Devices.Power.BatteryReport **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile), marshaling_behavior(agile),
static(Windows.Gaming.Input.IGamepadStatics, Windows.Foundation.UniversalApiContract, 1.0), static(Windows.Gaming.Input.IGamepadStatics, Windows.Foundation.UniversalApiContract, 1.0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment