mirror of
https://github.com/ndeadly/MissionControl
synced 2025-01-07 02:08:46 +00:00
29 lines
840 B
C++
29 lines
840 B
C++
#pragma once
|
|
#include <switch.h>
|
|
#include <stratosphere.hpp>
|
|
#include "bluetooth_types.hpp"
|
|
|
|
namespace ams::bluetooth::hid::report {
|
|
|
|
bool IsInitialized(void);
|
|
|
|
SharedMemory *GetRealSharedMemory(void);
|
|
SharedMemory *GetFakeSharedMemory(void);
|
|
|
|
os::SystemEventType *GetSystemEvent(void);
|
|
os::SystemEventType *GetForwardEvent(void);
|
|
os::SystemEventType *GetUserForwardEvent(void);
|
|
|
|
Result Initialize(Handle eventHandle);
|
|
void Finalize(void);
|
|
|
|
Result MapRemoteSharedMemory(Handle handle);
|
|
Result InitializeReportBuffer(void);
|
|
|
|
Result WriteFakeHidData(const Address *address, const HidData *data);
|
|
Result FakeSubCmdResponse(const bluetooth::Address *address, const u8 response[], size_t size);
|
|
|
|
Result GetEventInfo(HidEventType *type, u8* buffer, size_t size);
|
|
void HandleEvent(void);
|
|
|
|
}
|