mirror of
https://github.com/WinDurango/WinDurango.git
synced 2026-01-31 00:55:17 +01:00
128 lines
4.5 KiB
Plaintext
128 lines
4.5 KiB
Plaintext
//All the info came from the Unity PDB.
|
|
//Since it doens't count with all definitions,
|
|
//some of them are simply placeholders and should
|
|
//not represent something correct at all.
|
|
namespace Windows.Xbox.Media
|
|
{
|
|
[version(1)]
|
|
enum GamePlaybackStatus
|
|
{
|
|
Closed,
|
|
Changing,
|
|
Stopped,
|
|
Playing,
|
|
Paused
|
|
};
|
|
|
|
[version(1)]
|
|
enum GameTransportControlsButton
|
|
{
|
|
Play,
|
|
Pause,
|
|
Menu,
|
|
View,
|
|
Back,
|
|
MaxButtons
|
|
};
|
|
|
|
//Placeholder member, correct ones are unknown at the moment.
|
|
[version(1)]
|
|
enum GameTransportControlsProperty
|
|
{
|
|
Unknown
|
|
};
|
|
|
|
//Placeholder member, correct ones are unknown at the moment.
|
|
[version(1)]
|
|
enum SoundLevel
|
|
{
|
|
Unknown
|
|
};
|
|
|
|
[contractversion(1.0)]
|
|
apicontract GameTransportControlsContract
|
|
{
|
|
}
|
|
|
|
// GUID from @Zombie
|
|
[uuid(D0CA0936-339B-4CB3-8EEB-737607F56E08)]
|
|
[version(1)]
|
|
[exclusiveto(Windows.Xbox.Media.GameTransportControlsPropertyChangedEventArgs)]
|
|
interface IGameTransportControlsPropertyChangedEventArgs : IInspectable
|
|
{
|
|
[propget] HRESULT Property([out][retval] Windows.Xbox.Media.GameTransportControlsProperty* value);
|
|
}
|
|
|
|
// GUID from @Zombie
|
|
[uuid(9BD12C1F-24FE-4790-8C2C-8FB6A5727BC2)]
|
|
[version(1)]
|
|
[exclusiveto(Windows.Xbox.Media.GameTransportControlsButtonPressedEventArgs)]
|
|
interface IGameTransportControlsButtonPressedEventArgs : IInspectable
|
|
{
|
|
[propget] HRESULT Button([out][retval] Windows.Xbox.Media.GameTransportControlsButton* value);
|
|
}
|
|
|
|
[contract(Windows.Xbox.Media.GameTransportControlsContract, 1.0)]
|
|
[exclusiveto(Windows.Xbox.Media.GameTransportControls)]
|
|
[uuid(F5BA60D7-9303-44CD-AC0C-4E532702CD00)]
|
|
[version(1)]
|
|
interface IGameTransportControls : IInspectable
|
|
{
|
|
[propget] HRESULT Title([out][retval] HSTRING* value);
|
|
[propput] HRESULT Title([in] HSTRING value);
|
|
|
|
[propget] HRESULT Subtitle([out][retval] HSTRING* value);
|
|
[propput] HRESULT Subtitle([in] HSTRING value);
|
|
|
|
[propget] HRESULT PlaybackStatus([out][retval] Windows.Xbox.Media.GamePlaybackStatus* value);
|
|
[propput] HRESULT PlaybackStatus([in] Windows.Xbox.Media.GamePlaybackStatus value);
|
|
|
|
[propget] HRESULT SoundLevel([out][retval] Windows.Xbox.Media.SoundLevel* value);
|
|
|
|
[propget] HRESULT IsEnabled([out][retval] boolean* value);
|
|
[propput] HRESULT IsEnabled([in] boolean value);
|
|
|
|
[propget] HRESULT IsPlayEnabled([out][retval] boolean* value);
|
|
[propput] HRESULT IsPlayEnabled([in] boolean value);
|
|
|
|
[propget] HRESULT IsPauseEnabled([out][retval] boolean* value);
|
|
[propput] HRESULT IsPauseEnabled([in] boolean value);
|
|
|
|
[propget] HRESULT IsMenuEnabled([out][retval] boolean* value);
|
|
[propput] HRESULT IsMenuEnabled([in] boolean value);
|
|
|
|
[propget] HRESULT IsViewEnabled([out][retval] boolean* value);
|
|
[propput] HRESULT IsViewEnabled([in] boolean value);
|
|
|
|
[propget] HRESULT IsBackEnabled([out][retval] boolean* value);
|
|
[propput] HRESULT IsBackEnabled([in] boolean value);
|
|
|
|
HRESULT add_ButtonPressed([in] Windows.Foundation.TypedEventHandler<Windows.Xbox.Media.GameTransportControls, Windows.Xbox.Media.GameTransportControlsButtonPressedEventArgs>* handler, [out][retval] Windows.Foundation.EventRegistrationToken* token);
|
|
|
|
HRESULT remove_ButtonPressed([in] Windows.Foundation.EventRegistrationToken token);
|
|
|
|
HRESULT add_PropertyChanged([in] Windows.Foundation.TypedEventHandler<Windows.Xbox.Media.GameTransportControls, Windows.Xbox.Media.GameTransportControlsPropertyChangedEventArgs>* handler, [out][retval] Windows.Foundation.EventRegistrationToken* token);
|
|
|
|
HRESULT remove_PropertyChanged([in] Windows.Foundation.EventRegistrationToken token);
|
|
}
|
|
|
|
[activatable(Windows.Xbox.Media.GameTransportControlsContract, 1.0)]
|
|
[contract(Windows.Xbox.Media.GameTransportControlsContract, 1.0)]
|
|
[version(1)]
|
|
[default_interface]
|
|
runtimeclass GameTransportControls {
|
|
[default] interface Windows.Xbox.Media.IGameTransportControls;
|
|
}
|
|
|
|
[version(1)]
|
|
[default_interface]
|
|
runtimeclass GameTransportControlsButtonPressedEventArgs {
|
|
[default] interface Windows.Xbox.Media.IGameTransportControlsButtonPressedEventArgs;
|
|
}
|
|
|
|
[version(1)]
|
|
[default_interface]
|
|
runtimeclass GameTransportControlsPropertyChangedEventArgs {
|
|
[default] interface Windows.Xbox.Media.IGameTransportControlsPropertyChangedEventArgs;
|
|
}
|
|
} |