mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-23 06:41:08 +00:00
Remove unnecessary mGuiCursorEnabled; from sensor manager
This commit is contained in:
parent
183ca3079e
commit
a85f2b0b2a
@ -132,7 +132,6 @@ namespace MWInput
|
|||||||
{
|
{
|
||||||
mControllerManager->setGuiCursorEnabled(guiMode);
|
mControllerManager->setGuiCursorEnabled(guiMode);
|
||||||
mMouseManager->setGuiCursorEnabled(guiMode);
|
mMouseManager->setGuiCursorEnabled(guiMode);
|
||||||
mSensorManager->setGuiCursorEnabled(guiMode);
|
|
||||||
mGyroManager->setGuiCursorEnabled(guiMode);
|
mGyroManager->setGuiCursorEnabled(guiMode);
|
||||||
mMouseManager->setMouseLookEnabled(!guiMode);
|
mMouseManager->setMouseLookEnabled(!guiMode);
|
||||||
if (guiMode)
|
if (guiMode)
|
||||||
|
@ -15,7 +15,6 @@ namespace MWInput
|
|||||||
, mGyroValues()
|
, mGyroValues()
|
||||||
, mGyroUpdateTimer(0.f)
|
, mGyroUpdateTimer(0.f)
|
||||||
, mGyroscope(nullptr)
|
, mGyroscope(nullptr)
|
||||||
, mGuiCursorEnabled(true)
|
|
||||||
{
|
{
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
@ -36,8 +36,6 @@ namespace MWInput
|
|||||||
void displayOrientationChanged() override;
|
void displayOrientationChanged() override;
|
||||||
void processChangedSettings(const Settings::CategorySettingVector& changed);
|
void processChangedSettings(const Settings::CategorySettingVector& changed);
|
||||||
|
|
||||||
void setGuiCursorEnabled(bool enabled) { mGuiCursorEnabled = enabled; }
|
|
||||||
|
|
||||||
bool isGyroAvailable() const;
|
bool isGyroAvailable() const;
|
||||||
std::array<float, 3> getGyroValues() const;
|
std::array<float, 3> getGyroValues() const;
|
||||||
|
|
||||||
@ -51,8 +49,6 @@ namespace MWInput
|
|||||||
float mGyroUpdateTimer;
|
float mGyroUpdateTimer;
|
||||||
|
|
||||||
SDL_Sensor* mGyroscope;
|
SDL_Sensor* mGyroscope;
|
||||||
|
|
||||||
bool mGuiCursorEnabled;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user