Remove all trailing whitespaces from our codebase.

This commit is contained in:
Pierre Bourdon
2014-03-29 11:05:44 +01:00
parent 92fc7c64d6
commit 664c8d30a0
52 changed files with 95 additions and 95 deletions

View File

@ -37,7 +37,7 @@ private:
const ButtonManager::ButtonType _index;
const float _neg;
};
public:
bool UpdateInput() { return true; }
bool UpdateOutput() { return true; }

View File

@ -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 = &params; // tells UpdateOutput the state has changed
// tells UpdateOutput to either start or stop the force
m_state.size = new_val ? sizeof(params) : 0;
}

View File

@ -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;

View File

@ -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

View File

@ -86,7 +86,7 @@ void Init(std::vector<Core::Device*>& devices)
return;
}
}
XINPUT_CAPABILITIES caps;
for (int i = 0; i != 4; ++i)
if (ERROR_SUCCESS == PXInputGetCapabilities(i, 0, &caps))