mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-27 00:00:08 +00:00
Style tweaks
This commit is contained in:
parent
c180fd4003
commit
264335b627
@ -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 New Issue
Block a user