mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-04 12:55:22 +12:00
Add HID service
This commit is contained in:
parent
5bc8c9d671
commit
340e0c9266
5 changed files with 46 additions and 2 deletions
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class HIDService {
|
||||
Handle handle = KernelHandles::HID;
|
||||
Memory& mem;
|
||||
|
||||
public:
|
||||
HIDService(Memory& mem) : mem(mem) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -3,12 +3,14 @@
|
|||
#include "helpers.hpp"
|
||||
#include "memory.hpp"
|
||||
#include "services/apt.hpp"
|
||||
#include "services/hid.hpp"
|
||||
|
||||
class ServiceManager {
|
||||
std::array<u32, 16>& regs;
|
||||
Memory& mem;
|
||||
|
||||
APTService apt;
|
||||
HIDService hid;
|
||||
|
||||
// "srv:" commands
|
||||
void getServiceHandle(u32 messagePointer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue