mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 07:11:33 +00:00
More formatting changes
This commit is contained in:
parent
b575712cb1
commit
0455f48d02
3 changed files with 24 additions and 26 deletions
|
@ -138,7 +138,7 @@ namespace MWInput
|
|||
{
|
||||
triedToMove = true;
|
||||
player.setAutoMove (false);
|
||||
player.setForwardBackward((yAxis - 0.5f) * 2 * -1);
|
||||
player.setForwardBackward((0.5f - yAxis) * 2);
|
||||
}
|
||||
|
||||
if (triedToMove)
|
||||
|
@ -316,7 +316,6 @@ namespace MWInput
|
|||
{
|
||||
// Presumption of GUI mode will be removed in the future.
|
||||
// MyGUI KeyCodes *may* change.
|
||||
|
||||
MyGUI::KeyCode key = MyGUI::KeyCode::None;
|
||||
switch (arg.button)
|
||||
{
|
||||
|
|
|
@ -90,8 +90,8 @@ namespace MWInput
|
|||
|
||||
if (mMouseLookEnabled && !mControlsDisabled)
|
||||
{
|
||||
float x = arg.xrel * mCameraSensitivity * (1.0f/256.f) * (mInvertX ? -1 : 1);
|
||||
float y = arg.yrel * mCameraSensitivity * (1.0f/256.f) * (mInvertY ? -1 : 1) * mCameraYMultiplier;
|
||||
float x = arg.xrel * mCameraSensitivity * (mInvertX ? -1 : 1) / 256.f;
|
||||
float y = arg.yrel * mCameraSensitivity * (mInvertY ? -1 : 1) * mCameraYMultiplier / 256.f;
|
||||
|
||||
float rot[3];
|
||||
rot[0] = -y;
|
||||
|
@ -182,9 +182,9 @@ namespace MWInput
|
|||
return;
|
||||
|
||||
float rot[3];
|
||||
rot[0] = yAxis * (dt * 100.0f) * 10.0f * mCameraSensitivity * (1.0f/256.f) * (mInvertY ? -1 : 1) * mCameraYMultiplier;
|
||||
rot[0] = yAxis * dt * 1000.0f * mCameraSensitivity * (mInvertY ? -1 : 1) * mCameraYMultiplier / 256.f;
|
||||
rot[1] = 0.0f;
|
||||
rot[2] = xAxis * (dt * 100.0f) * 10.0f * mCameraSensitivity * (1.0f/256.f) * (mInvertX ? -1 : 1);
|
||||
rot[2] = xAxis * dt * 1000.0f * mCameraSensitivity * (mInvertX ? -1 : 1) / 256.f;
|
||||
|
||||
// Only actually turn player when we're not in vanity mode
|
||||
if (!MWBase::Environment::get().getWorld()->vanityRotateCamera(rot) && MWBase::Environment::get().getInputManager()->getControlSwitch("playercontrols"))
|
||||
|
|
|
@ -109,7 +109,6 @@ namespace MWInput
|
|||
if (Settings::Manager::getBool("enable gyroscope", "Input"))
|
||||
{
|
||||
int numSensors = SDL_NumSensors();
|
||||
|
||||
for (int i = 0; i < numSensors; ++i)
|
||||
{
|
||||
if (SDL_SensorGetDeviceType(i) == SDL_SENSOR_GYRO)
|
||||
|
|
Loading…
Reference in a new issue