mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 08:33:12 -05:00
Keep the existing Export.cpp entry point and System V ABI while moving mouse state into the library implementation.`n`nTrack initialization, a single handle, button state, timestamps, and a bounded non-blocking event queue. Define and assert the guest MouseData layout and expose an input publisher for the host backend. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
638 B
C++
26 lines
638 B
C++
#include "prx/libSceMouse/include/MouseState.hpp"
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceMouseInit() {
|
|
return Mouse::Initialize();
|
|
}
|
|
|
|
int APS5_VABI sceMouseOpen(int userId, std::int32_t type, std::int32_t index, const void* param) {
|
|
return Mouse::Open(userId, type, index, static_cast<const MouseOpenParam*>(param));
|
|
}
|
|
|
|
int APS5_VABI sceMouseClose(std::int32_t handle) {
|
|
return Mouse::Close(handle);
|
|
}
|
|
|
|
int APS5_VABI sceMouseRead(std::int32_t handle, MouseData* data, std::int32_t num) {
|
|
return Mouse::Read(handle, data, num);
|
|
}
|
|
|
|
void MousePublishInput_nid_postfix(const MouseInputEvent& event) {
|
|
Mouse::Publish(event);
|
|
}
|
|
|
|
}
|