mirror of
https://github.com/ARMSX2/ARMSX3.git
synced 2026-08-24 16:58:52 -07:00
Adds an Android build of the RPCS3 core plus a Compose UI, and fixes several things that stopped it working on ARM64. Renderer: - Emit concrete bounds for runtime sized arrays in uniform blocks when VK_EXT_shader_uniform_buffer_unsized_array is missing. Adreno does not have the extension, so every game pipeline failed with VK_ERROR_UNKNOWN and only overlays drew. - Probe and request that extension properly instead of chaining its feature struct unconditionally. - Hand VMA the Vulkan function pointers it needs under VK_NO_PROTOTYPES. - Rebuild the surface and swapchain when the window is lost instead of killing the RSX thread. - Only create a GLES context when the GL renderer is actually selected. SPU: - Sum instead of taking an absolute difference in the ARM64 block verification checksum. The difference collides on the near identical job binaries an SPU job manager streams through one local store address, so a cached block could run against another job's code. Threading: - Implement thread affinity on Android using sched_setaffinity. - Add an ARM big.LITTLE core arrangement so SPU and RSX threads land on the fast cores. Misc: - Detect the host CPU for the LLVM JIT instead of pinning cortex-a34. - Fall back to the default audio device when cubeb cannot enumerate.
41 lines
878 B
C++
41 lines
878 B
C++
#pragma once
|
|
|
|
#include "Emu/Io/PadHandler.h"
|
|
|
|
class virtual_pad_handler final : public PadHandlerBase
|
|
{
|
|
using on_connect_cb = std::function<bool(const std::shared_ptr<Pad>&)>;
|
|
static on_connect_cb mOnConnect;
|
|
|
|
public:
|
|
virtual_pad_handler();
|
|
|
|
static void set_on_connect_cb(on_connect_cb cb)
|
|
{
|
|
mOnConnect = std::move(cb);
|
|
}
|
|
|
|
bool Init() override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void init_config(cfg_pad* cfg) override
|
|
{
|
|
if (!cfg)
|
|
return;
|
|
|
|
cfg->from_default();
|
|
}
|
|
|
|
std::vector<pad_list_entry> list_devices() override;
|
|
|
|
connection get_next_button_press(const std::string& /*padId*/, const pad_callback& /*callback*/, const pad_fail_callback& /*fail_callback*/, gui_call_type /*call_type*/, const std::vector<std::string>& /*buttons*/) override
|
|
{
|
|
return connection::connected;
|
|
}
|
|
|
|
bool bindPadToDevice(std::shared_ptr<Pad> pad) override;
|
|
void process() override {}
|
|
};
|