mirror of
https://codeberg.org/WinDurango/WinDurango.git
synced 2026-04-18 10:33:33 -04:00
this also includes a stub for acphal which is unfinished, and a simple generated mfplat proxy
122 lines
5.1 KiB
C++
122 lines
5.1 KiB
C++
#include "pch.h"
|
|
#include "Windows.Xbox.Input.Controller.h"
|
|
#include "Windows.Xbox.Input.Controller.g.cpp"
|
|
|
|
// WARNING: This file is automatically generated by a tool. Do not directly
|
|
// add this file to your project, as any changes you make will be lost.
|
|
// This file is a stub you can use as a starting point for your implementation.
|
|
//
|
|
// To add a copy of this file to your project:
|
|
// 1. Copy this file from its original location to the location where you store
|
|
// your other source files (e.g. the project root).
|
|
// 2. Add the copied file to your project. In Visual Studio, you can use
|
|
// Project -> Add Existing Item.
|
|
// 3. Delete this comment and the 'static_assert' (below) from the copied file.
|
|
// Do not modify the original file.
|
|
//
|
|
// To update an existing file in your project:
|
|
// 1. Copy the relevant changes from this file and merge them into the copy
|
|
// you made previously.
|
|
//
|
|
// This assertion helps prevent accidental modification of generated files.
|
|
//////////static_assert(false, "This file is generated by a tool and will be overwritten. Open this error and view the comment for assistance.");
|
|
|
|
namespace winrt::Windows::Xbox::Input::implementation
|
|
{
|
|
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Input::IController> Controller::Controllers( )
|
|
{
|
|
IController dummyController = winrt::make<Controller>( );
|
|
auto vector = winrt::single_threaded_vector<IController>( );
|
|
vector.Append(dummyController);
|
|
return vector.GetView( );
|
|
}
|
|
winrt::event_token Controller::ControllerAdded(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::Input::ControllerAddedEventArgs> const& handler)
|
|
{
|
|
return {};
|
|
}
|
|
void Controller::ControllerAdded(winrt::event_token const& token) noexcept
|
|
{
|
|
printf("[ControllerAdded] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::event_token Controller::ControllerRemoved(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::Input::ControllerRemovedEventArgs> const& handler)
|
|
{
|
|
return {};
|
|
}
|
|
void Controller::ControllerRemoved(winrt::event_token const& token) noexcept
|
|
{
|
|
printf("[ControllerRemoved] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::event_token Controller::ControllerPairingChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::Input::ControllerPairingChangedEventArgs> const& handler)
|
|
{
|
|
return {};
|
|
}
|
|
void Controller::ControllerPairingChanged(winrt::event_token const& token) noexcept
|
|
{
|
|
printf("[ControllerPairingChanged] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::event_token Controller::ControllerOrderChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::Input::ControllerOrderChangedEventArgs> const& handler)
|
|
{
|
|
printf("[ControllerOrderChanged] STUBBED\n");
|
|
return {};
|
|
}
|
|
void Controller::ControllerOrderChanged(winrt::event_token const& token) noexcept
|
|
{
|
|
printf("[ControllerOrderChangedInternal] STUBBED\n");
|
|
}
|
|
winrt::Windows::Xbox::Input::IController Controller::GetControllerById(uint64_t controllerId)
|
|
{
|
|
printf("[GetControllerById] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
void Controller::GetControllerMetadata(uint64_t controllerId, winrt::Windows::Xbox::Input::MetadataVersion const& metadataVersion, com_array<uint8_t>& ppMetadata)
|
|
{
|
|
printf("[GetControllerMetadata] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Input::IController> Controller::GetControllersOrderedLeftToRight(winrt::Windows::Xbox::Input::ControllerOrderFilter const& orderFilter)
|
|
{
|
|
printf("[GetControllersOrderedLeftToRight] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
uint64_t Controller::Id( )
|
|
{
|
|
return 1;
|
|
}
|
|
hstring Controller::Type( )
|
|
{
|
|
return L"Windows.Xbox.Input.Controller";
|
|
}
|
|
winrt::Windows::Xbox::System::User Controller::User( )
|
|
{
|
|
printf("[User] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::System::IAudioDeviceInfo> Controller::AudioDevices( )
|
|
{
|
|
printf("[AudioDevices] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::Windows::Xbox::Input::GameControllerVersionInfo Controller::FirmwareVersionInfo( )
|
|
{
|
|
printf("[FirmwareVersionInfo] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
winrt::Windows::Xbox::Input::GameControllerVersionInfo Controller::HardwareVersionInfo( )
|
|
{
|
|
printf("[HardwareVersionInfo] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
uint16_t Controller::HardwareProductId( )
|
|
{
|
|
printf("[HardwareProductId] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
uint16_t Controller::HardwareVendorId( )
|
|
{
|
|
printf("[HardwareVendorId] STUBBED\n");
|
|
throw hresult_not_implemented( );
|
|
}
|
|
} |