From 664c8d30a055f4762a2a60be77c1c8eaec1a5d85 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 29 Mar 2014 11:05:44 +0100 Subject: Remove all trailing whitespaces from our codebase. --- .../ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp | 4 ++-- .../ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h | 6 +++--- .../ControllerInterface/ForceFeedback/OSX/DirectInputConstants.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/ForceFeedback') diff --git a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp index 1117ed9856..57abcb1b1f 100644 --- a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp @@ -171,13 +171,13 @@ template<> void ForceFeedbackDevice::ForceConstant::SetState(const ControlState state) { const LONG new_val = LONG(10000 * state); - + LONG &val = params.lMagnitude; if (val != new_val) { val = new_val; m_state.params = ¶ms; // tells UpdateOutput the state has changed - + // tells UpdateOutput to either start or stop the force m_state.size = new_val ? sizeof(params) : 0; } diff --git a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h index 986fe2ea3b..f64f880616 100644 --- a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h +++ b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputAdapter.h @@ -2,7 +2,7 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -/* +/* * The OS X Force Feedback API is very similar to the DirectInput API, * but it is no longer object-oriented and all prefixes have been changed. * @@ -155,7 +155,7 @@ class FFDeviceAdapter : public IUnknownImpl { public: FFDeviceObjectReference m_device; - + FFDeviceAdapter(FFDeviceObjectReference device) : m_device(device) {} ~FFDeviceAdapter() { FFReleaseDevice(m_device); } @@ -206,7 +206,7 @@ public: // There are only two properties supported if (property != DIPROP_FFGAIN && property != DIPROP_AUTOCENTER) return DIERR_UNSUPPORTED; - + // And they are both device properties if (pdiph->dwHow != DIPH_DEVICE) return DIERR_INVALIDPARAM; diff --git a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputConstants.h b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputConstants.h index b8d47552d1..e99e990158 100644 --- a/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputConstants.h +++ b/Source/Core/InputCommon/ControllerInterface/ForceFeedback/OSX/DirectInputConstants.h @@ -4,7 +4,7 @@ #pragma once -/* +/* * Define all constants from ForceFeedbackConstants.h with DirectInput prefixes. * * No effort was made to confirm if all definitions are actually supported by -- cgit v1.2.3