From 5586c964bbc6ed252f0a0a6e867c96ba8a95b6f2 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 2 Mar 2009 04:18:02 +0000 Subject: [PATCH] ... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2514 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/SI_Device.cpp | 6 +----- Source/Core/Core/Src/HW/SI_DeviceGCController.cpp | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/Core/Core/Src/HW/SI_Device.cpp b/Source/Core/Core/Src/HW/SI_Device.cpp index fed00ad3d6..8f7b4bc28b 100644 --- a/Source/Core/Core/Src/HW/SI_Device.cpp +++ b/Source/Core/Core/Src/HW/SI_Device.cpp @@ -93,11 +93,7 @@ ISIDevice* SIDevice_Create(TSIDevices _SIDevice, int _iDeviceNumber) case SI_GBA: return new CSIDevice_GBA(_iDeviceNumber); break; - - default: - return NULL; - break; } - + return NULL; } diff --git a/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp b/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp index c8a19af89f..32173c0dac 100644 --- a/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp +++ b/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp @@ -126,8 +126,8 @@ CSIDevice_GCController::GetData(u32& _Hi, u32& _Low) _Hi = (u32)((u8)PadStatus.stickY); _Hi |= (u32)((u8)PadStatus.stickX << 8); - _Hi |= (u32)((u16)PadStatus.button << 16); // The highest 3bits should always be 0 - _Hi |= 0x00800000; // This bit is always on + _Hi |= (u32)((u16)PadStatus.button << 16); // Dunno were/if we should set any of the top 3bits... + _Hi |= 0x00800000; // F|RES: means that the pad must be "combined" with the origin to math the "final" OSPad-Struct //_Hi |= 0x20000000; // ? _Low = (u8)PadStatus.triggerRight;