From e01c2ac98dedfbbb08c484788a61056fed289d52 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 28 Jul 2015 00:32:01 -0700 Subject: [PATCH] Fixing formatting. --- src/xenia/hid/winkey/winkey_input_driver.cc | 10 +++++----- src/xenia/kernel/xobject.cc | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/xenia/hid/winkey/winkey_input_driver.cc b/src/xenia/hid/winkey/winkey_input_driver.cc index 5ebff9373..a9b5e1a87 100644 --- a/src/xenia/hid/winkey/winkey_input_driver.cc +++ b/src/xenia/hid/winkey/winkey_input_driver.cc @@ -199,19 +199,19 @@ X_RESULT WinKeyInputDriver::GetKeystroke(uint32_t user_index, uint32_t flags, // left stick if (IS_KEY_DOWN(0x57)) { // W - virtual_key = 0x5820; // VK_PAD_LTHUMB_UP + virtual_key = 0x5820; // VK_PAD_LTHUMB_UP } if (IS_KEY_DOWN(0x53)) { // S - virtual_key = 0x5821; // VK_PAD_LTHUMB_DOWN + virtual_key = 0x5821; // VK_PAD_LTHUMB_DOWN } if (IS_KEY_DOWN(0x44)) { // D - virtual_key = 0x5822; // VK_PAD_LTHUMB_RIGHT + virtual_key = 0x5822; // VK_PAD_LTHUMB_RIGHT } if (IS_KEY_DOWN(0x41)) { // A - virtual_key = 0x5823; // VK_PAD_LTHUMB_LEFT + virtual_key = 0x5823; // VK_PAD_LTHUMB_LEFT } } @@ -257,7 +257,7 @@ X_RESULT WinKeyInputDriver::GetKeystroke(uint32_t user_index, uint32_t flags, } if (virtual_key != 0) { - keystroke_flags |= 0x0001; // XINPUT_KEYSTROKE_DOWN + keystroke_flags |= 0x0001; // XINPUT_KEYSTROKE_DOWN result = X_ERROR_SUCCESS; } diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index b6c8df7ac..1f5272d1d 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -241,8 +241,7 @@ uint8_t* XObject::CreateNative(uint32_t size) { auto header = memory()->TranslateVirtual(mem); - auto object_type = - memory()->SystemHeapAlloc(sizeof(X_OBJECT_TYPE)); + auto object_type = memory()->SystemHeapAlloc(sizeof(X_OBJECT_TYPE)); if (object_type) { // Set it up in the header. // Some kernel method is accessing this struct and dereferencing a member