Style tweaks
This commit is contained in:
parent
c180fd4003
commit
264335b627
3 changed files with 7 additions and 7 deletions
|
@ -13,16 +13,16 @@
|
|||
|
||||
namespace HID_User {
|
||||
|
||||
Handle memIPC;
|
||||
Handle g_mem_ipc;
|
||||
|
||||
Handle getMemIPCHandle() {
|
||||
return memIPC;
|
||||
Handle GetMemIPCHandle() {
|
||||
return g_mem_ipc;
|
||||
}
|
||||
|
||||
void GetIPCHandles(Service::Interface* self) {
|
||||
u32* cmd_buff = Service::GetCommandBuffer();
|
||||
memIPC = Kernel::CreateSharedMemory(0x1000); //page size for now
|
||||
cmd_buff[3] = memIPC;
|
||||
g_mem_ipc = Kernel::CreateSharedMemory(0x1000); //page size for now
|
||||
cmd_buff[3] = g_mem_ipc;
|
||||
}
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace HID_User {
|
||||
|
||||
Handle getMemIPCHandle();
|
||||
Handle GetMemIPCHandle();
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
namespace HID {
|
||||
|
||||
void SetButtonReg(u32 buttonData) {
|
||||
Kernel::WriteSharedMemory(HID_User::getMemIPCHandle(), buttonData, OFFSET_BUTTONS);
|
||||
Kernel::WriteSharedMemory(HID_User::GetMemIPCHandle(), buttonData, OFFSET_BUTTONS);
|
||||
}
|
||||
|
||||
/// Update hardware
|
||||
|
|
Loading…
Reference in a new issue