#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_INPUT_H #define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_INPUT_H #include #include #include #include #include #include #include #include namespace Settings { struct InputCategory : WithIndex { using WithIndex::WithIndex; SettingValue mGrabCursor{ mIndex, "Input", "grab cursor" }; SettingValue mCameraSensitivity{ mIndex, "Input", "camera sensitivity", makeMaxStrictSanitizerFloat(0) }; SettingValue mCameraYMultiplier{ mIndex, "Input", "camera y multiplier", makeMaxStrictSanitizerFloat(0) }; SettingValue mInvertXAxis{ mIndex, "Input", "invert x axis" }; SettingValue mInvertYAxis{ mIndex, "Input", "invert y axis" }; SettingValue mEnableController{ mIndex, "Input", "enable controller" }; SettingValue mGamepadCursorSpeed{ mIndex, "Input", "gamepad cursor speed", makeMaxStrictSanitizerFloat(0) }; SettingValue mJoystickDeadZone{ mIndex, "Input", "joystick dead zone", makeClampSanitizerFloat(0, 0.5f) }; SettingValue mEnableGyroscope{ mIndex, "Input", "enable gyroscope" }; SettingValue mGyroHorizontalAxis{ mIndex, "Input", "gyro horizontal axis" }; SettingValue mGyroVerticalAxis{ mIndex, "Input", "gyro vertical axis" }; SettingValue mGyroInputThreshold{ mIndex, "Input", "gyro input threshold", makeMaxSanitizerFloat(0) }; SettingValue mGyroHorizontalSensitivity{ mIndex, "Input", "gyro horizontal sensitivity", makeMaxStrictSanitizerFloat(0) }; SettingValue mGyroVerticalSensitivity{ mIndex, "Input", "gyro vertical sensitivity", makeMaxStrictSanitizerFloat(0) }; }; } #endif