Structure som properties and add option ot invert input

This commit is contained in:
Emma Broman
2021-11-19 09:13:28 +01:00
parent 77095b4467
commit dc8a0f7b0e
2 changed files with 102 additions and 36 deletions

View File

@@ -108,10 +108,22 @@ private:
std::vector<SceneGraphNode*> _relevantNodes;
bool _hasInitializedRelevantNodes = false;
properties::FloatProperty _mouseSensitivity;
properties::FloatProperty _joystickImpactFactor;
MouseCameraStates _mouseStates;
struct MidFlightInteraction : public properties::PropertyOwner {
MidFlightInteraction();
properties::BoolProperty enabled;
properties::BoolProperty invertedX;
properties::BoolProperty invertedY;
properties::BoolProperty invertedRoll;
properties::FloatProperty mouseSensitivity;
properties::FloatProperty joystickImpactFactor;
MouseCameraStates mouseStates;
};
MidFlightInteraction _interaction;
float _localPitchAngle = 0.f;
float _localYawAngle = 0.f;