From 3285b3c1682e9953c65232a31957259c82e04d4a Mon Sep 17 00:00:00 2001 From: inspuration Date: Thu, 29 May 2014 16:45:09 -0400 Subject: [PATCH] changed paddr_buttons to vaddr --- src/core/hw/hid.cpp | 2 +- src/core/hw/hid.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hw/hid.cpp b/src/core/hw/hid.cpp index b7fefdd21..a1b4b139c 100644 --- a/src/core/hw/hid.cpp +++ b/src/core/hw/hid.cpp @@ -15,7 +15,7 @@ inline void Write(u32 addr, const T data) { //TODO: replace with an interface that doesnt suck (bravia) void SetButtonReg(u32 buttonData) { - Memory::Write32(PADDR_BUTTONS, buttonData); + Memory::Write32(VADDR_BUTTONS, buttonData); } /// Update hardware diff --git a/src/core/hw/hid.h b/src/core/hw/hid.h index e80178bcd..1a89c9b41 100644 --- a/src/core/hw/hid.h +++ b/src/core/hw/hid.h @@ -13,7 +13,7 @@ struct Registers { extern Registers g_regs; enum { - PADDR_BUTTONS = 0x1000001c, //TODO: it works using the shared mem mapping with all homebrew tested, however the wiki states 0x10146000 as the paddr + VADDR_BUTTONS = 0x1000001c, //TODO: it works using the shared mem mapping with all homebrew tested, however the wiki states 0x10146000 as the paddr };