mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-10 03:11:35 -10:00
Of it, the backends read the EFB scale, now passed as the backbuffer scale; GLContext::Create tested for libretro, its only context; and the controller interface kept a render window that is always null. The video backends' Initialize, InitBackendInfo and PopulateBackendInfo, Core::Init, EmuThread and StartEmuThread, BootCore and the controller interface lose the parameter; PrepareWindow, ChangeWindow, the window change refresh and the Vulkan instance's surface extensions go, as nothing presents but the frontend.
38 lines
714 B
C++
38 lines
714 B
C++
// Copyright 2022 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
class ControllerInterface;
|
|
|
|
namespace ciface
|
|
{
|
|
|
|
namespace Core
|
|
{
|
|
class Device;
|
|
}
|
|
|
|
class InputBackend
|
|
{
|
|
public:
|
|
InputBackend(ControllerInterface* controller_interface);
|
|
|
|
virtual ~InputBackend();
|
|
|
|
virtual void PopulateDevices() = 0;
|
|
// Do NOT directly add/remove devices within here,
|
|
// just add them to the removal list if necessary.
|
|
virtual void UpdateInput(std::vector<std::weak_ptr<ciface::Core::Device>>& devices_to_remove);
|
|
|
|
ControllerInterface& GetControllerInterface();
|
|
|
|
private:
|
|
ControllerInterface& m_controller_interface;
|
|
};
|
|
|
|
} // namespace ciface
|