#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 Controller::Controllers( ) { IController dummyController = winrt::make( ); auto vector = winrt::single_threaded_vector( ); vector.Append(dummyController); return vector.GetView( ); } winrt::event_token Controller::ControllerAdded(winrt::Windows::Foundation::EventHandler 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 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 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 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& ppMetadata) { printf("[GetControllerMetadata] STUBBED\n"); throw hresult_not_implemented( ); } winrt::Windows::Foundation::Collections::IVectorView 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 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( ); } }