|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
User preferences for an InputManager. More...
#include <GREM/events/InputManager.hpp>
Public Attributes | |
| vec2 | mouseSensitivity {convertDegreesToRadians(0.022f)} |
| Mouse sensitivity coefficient. | |
| vec2 | mouseWheelScrollSensitivity {1.0f} |
| Mouse wheel scroll sensitivity coefficient. | |
| vec2 | touchMotionSensitivity {1.0f} |
| Touch finger motion sensitivity coefficient. | |
| vec2 | controllerLeftStickSensitivity {1.0f / 32767.0f} |
| Controller left analog stick sensitivity coefficient. | |
| vec2 | controllerRightStickSensitivity {1.0f / 32767.0f} |
| Controller right analog stick sensitivity coefficient. | |
| float | controllerLeftStickCurveExponent = 1.0f |
| Controller left analog stick curve exponent. | |
| float | controllerRightStickCurveExponent = 1.0f |
| Controller right analog stick curve exponent. | |
| float | touchPressureLowerDeadzone = 0.25f |
| Touch finger pressure lower deadzone fraction. | |
| float | touchPressureUpperDeadzone = 0.9f |
| Touch finger pressure upper deadzone fraction. | |
| float | pinchSensitivity = 1.0f |
| Pinch fingers sensitivity coefficient. | |
| float | controllerLeftStickInnerDeadzone = 0.25f |
| Controller left analog stick inner deadzone fraction. | |
| float | controllerLeftStickOuterDeadzone = 0.9f |
| Controller left analog stick outer deadzone fraction. | |
| float | controllerRightStickInnerDeadzone = 0.25f |
| Controller right analog stick inner deadzone fraction. | |
| float | controllerRightStickOuterDeadzone = 0.9f |
| Controller right analog stick outer deadzone fraction. | |
| float | controllerLeftTriggerLowerDeadzone = 0.2f |
| Controller left trigger lower deadzone fraction. | |
| float | controllerLeftTriggerUpperDeadzone = 0.9f |
| Controller left trigger upper deadzone fraction. | |
| float | controllerRightTriggerLowerDeadzone = 0.2f |
| Controller right trigger lower deadzone fraction. | |
| float | controllerRightTriggerUpperDeadzone = 0.9f |
| Controller right trigger upper deadzone fraction. | |
User preferences for an InputManager.
| vec2 grem::events::InputManagerPreferences::mouseSensitivity {convertDegreesToRadians(0.022f)} |
Mouse sensitivity coefficient.
The influence of mouse movement on its bound output values will be multiplied by this value. This should adjust the original mouse motion, which is measured in screen coordinates, such that it becomes more in line with the canonical 0 to 1 range of a key press.
| vec2 grem::events::InputManagerPreferences::mouseWheelScrollSensitivity {1.0f} |
Mouse wheel scroll sensitivity coefficient.
The influence of mouse wheel scrolling on its bound output values will be multiplied by this value.
| vec2 grem::events::InputManagerPreferences::touchMotionSensitivity {1.0f} |
Touch finger motion sensitivity coefficient.
The influence of finger movement on its bound output values will be multiplied by this value before being applied.
| vec2 grem::events::InputManagerPreferences::controllerLeftStickSensitivity {1.0f / 32767.0f} |
Controller left analog stick sensitivity coefficient.
The influence of controller left analog stick movement on its bound output values will be multiplied by this value. This should adjust the original stick position, which is measured from -32768 to 32767, such that it becomes more in line with the canonical 0 to 1 range of a key press.
| vec2 grem::events::InputManagerPreferences::controllerRightStickSensitivity {1.0f / 32767.0f} |
Controller right analog stick sensitivity coefficient.
The influence of controller right analog stick movement on its bound output values will be multiplied by this value. This should adjust the original stick position, which is measured from -32768 to 32767, such that it becomes more in line with the canonical 0 to 1 range of a key press.
| float grem::events::InputManagerPreferences::controllerLeftStickCurveExponent = 1.0f |
Controller left analog stick curve exponent.
The stick's normalized deadzone-adjusted distance will be raised to this power before sensitivity is applied. This affects the shape of the sensitivity curve. Lower values yield a faster response near the center that trails off towards the edges, while higher values yield a slower response near the center that ramps up more quickly near the edges. A value of 1 yields a perfectly linear response.
| float grem::events::InputManagerPreferences::controllerRightStickCurveExponent = 1.0f |
Controller right analog stick curve exponent.
The stick's normalized deadzone-adjusted distance will be raised to this power before sensitivity is applied. This affects the shape of the sensitivity curve. Lower values yield a faster response near the center that trails off towards the edges, while higher values yield a slower response near the center that ramps up more quickly near the edges. A value of 1 yields a perfectly linear response.
| float grem::events::InputManagerPreferences::touchPressureLowerDeadzone = 0.25f |
Touch finger pressure lower deadzone fraction.
When the pressure amount is less than or equal to this value, the actual position will be ignored and treated as if it was 0 in order to avoid fluctuations and accidental inputs when the finger is at rest.
| float grem::events::InputManagerPreferences::touchPressureUpperDeadzone = 0.9f |
Touch finger pressure upper deadzone fraction.
This is the maximum pressure amount needed to reach a deadzone-adjusted value of 1, beyond which higher pressures will be ignored.
| float grem::events::InputManagerPreferences::pinchSensitivity = 1.0f |
Pinch fingers sensitivity coefficient.
The influence of pinch movement on its bound output values will be multiplied by this value before being applied.
| float grem::events::InputManagerPreferences::controllerLeftStickInnerDeadzone = 0.25f |
Controller left analog stick inner deadzone fraction.
When the stick is at a position whose fractional distance from the center is less than or equal to this value, the actual position will be ignored and treated as if it was (0, 0) in order to avoid fluctuations or drifting when the stick is at rest.
| float grem::events::InputManagerPreferences::controllerLeftStickOuterDeadzone = 0.9f |
Controller left analog stick outer deadzone fraction.
This is the maximum fractional stick distance from the center needed to reach a deadzone-adjusted distance of 1, beyond which further stick distances will be ignored.
| float grem::events::InputManagerPreferences::controllerRightStickInnerDeadzone = 0.25f |
Controller right analog stick inner deadzone fraction.
When the stick is at a position whose fractional distance from the center is less than or equal to this value, the actual position will be ignored and treated as if it was (0, 0) in order to avoid fluctuations or drifting when the stick is at rest.
| float grem::events::InputManagerPreferences::controllerRightStickOuterDeadzone = 0.9f |
Controller right analog stick outer deadzone fraction.
This is the maximum fractional stick distance from the center needed to reach a deadzone-adjusted distance of 1, beyond which further stick distances will be ignored.
| float grem::events::InputManagerPreferences::controllerLeftTriggerLowerDeadzone = 0.2f |
Controller left trigger lower deadzone fraction.
When the trigger is at a position whose fractional distance from the rest position is less than or equal to this value, the actual position will be ignored and treated as if it was 0 in order to avoid fluctuations and accidental inputs when the trigger is at rest.
| float grem::events::InputManagerPreferences::controllerLeftTriggerUpperDeadzone = 0.9f |
Controller left trigger upper deadzone fraction.
This is the maximum fractional trigger press amount needed to reach a deadzone-adjusted value of 1, beyond which higher press amounts will be ignored.
| float grem::events::InputManagerPreferences::controllerRightTriggerLowerDeadzone = 0.2f |
Controller right trigger lower deadzone fraction.
When the trigger is at a position whose fractional distance from the rest position is less than or equal to this value, the actual position will be ignored and treated as if it was 0 in order to avoid fluctuations and accidental inputs when the trigger is at rest.
| float grem::events::InputManagerPreferences::controllerRightTriggerUpperDeadzone = 0.9f |
Controller right trigger upper deadzone fraction.
This is the maximum fractional trigger press amount needed to reach a deadzone-adjusted value of 1, beyond which higher press amounts will be ignored.