Fixed minor suggestions by bunnei

This commit is contained in:
inspuration 2014-05-29 16:42:37 -04:00
parent 53cc3e8f67
commit 6682f9173b
5 changed files with 82 additions and 80 deletions

View File

@ -206,7 +206,7 @@ void GRenderWindow::keyPressEvent(QKeyEvent* event)
buttonReg |= GetKeyBinding(event);
HID::setButtonReg(buttonReg);
HID::SetButtonReg(buttonReg);
return;
}
@ -223,5 +223,5 @@ void GRenderWindow::keyReleaseEvent(QKeyEvent* event)
*/
buttonReg &= 0xffffffff ^ GetKeyBinding(event);
HID::setButtonReg(buttonReg);
HID::SetButtonReg(buttonReg);
}

View File

@ -226,8 +226,9 @@ Result CreateEvent(void* _event, u32 reset_type) {
return 0;
}
u64 GetSystemTick(void) {
return Core::g_sys_core->GetTicks();
//TODO: verify with a kernel dump
u64 GetSystemTick() {
return Core::g_app_core->GetTicks();
}
const HLE::FunctionDef SVC_Table[] = {

View File

@ -13,7 +13,8 @@ namespace HID {
ERROR_LOG(HID, "unknown Write%d 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr);
}
void setButtonReg(u32 buttonData) {
//TODO: replace with an interface that doesnt suck (bravia)
void SetButtonReg(u32 buttonData) {
Memory::Write32(PADDR_BUTTONS, buttonData);
}

View File

@ -59,7 +59,7 @@ namespace HID {
template <typename T>
inline void Write(u32 addr, const T data);
void setButtonReg(u32 buttonData);
void SetButtonReg(u32 buttonData);
/// Update hardware
void Update();