AnyPS5/core/libs/prx/libSceBluetoothHid/Export.cpp
Gjon Gojcevic cb00552dd6 feat(libSceBluetoothHid): add Bluetooth HID with no devices attached
Initialization and callback and device registration succeed, no device ever connects, and calls that need a device throw.
2026-10-08 15:30:58 +13:00

52 lines
1.2 KiB
C++

#include <cstdint>
#include <cstddef>
#include "SceTypes.hpp"
#include "prx/libc/include/General.hpp"
#include <string>
extern "C" {
std::int32_t APS5_VABI sceBluetoothHidInit() {
return 0;
}
std::int32_t APS5_VABI sceBluetoothHidRegisterCallback(void* callback, std::int32_t flags, void* param) {
(void)flags;
(void)param;
if (callback == nullptr) throw std::invalid_argument(std::string(__func__) + ": null callback");
return 0;
}
std::int32_t APS5_VABI sceBluetoothHidUnregisterCallback() {
return 0;
}
std::int32_t APS5_VABI sceBluetoothHidRegisterDevice(std::uint16_t vendorId, std::uint16_t productId) {
(void)vendorId;
(void)productId;
return 0;
}
std::int32_t APS5_VABI sceBluetoothHidUnregisterDevice(std::uint16_t vendorId, std::uint16_t productId) {
(void)vendorId;
(void)productId;
return 0;
}
int APS5_VABI sceBluetoothHidGetDeviceName() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceBluetoothHidGetInputReport() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceBluetoothHidSetOutputReport() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}