feat: lifted player input mouse look speed to variable
This commit is contained in:
parent
2a083b6430
commit
53a5118079
|
@ -66,7 +66,7 @@ void PlayerInput::unhandled_input(Ref<InputEvent> const &event) {
|
|||
}
|
||||
Ref<InputEventMouseMotion> mouse_motion{ event };
|
||||
if (mouse_motion.is_valid()) {
|
||||
Vector2 state{ -mouse_motion->get_relative() * 0.0005f };
|
||||
Vector2 state{ -mouse_motion->get_relative() * this->mouselook_speed };
|
||||
emit_signal(sig_look_input, state);
|
||||
}
|
||||
if (event->is_action("primary_fire")) {
|
||||
|
|
|
@ -24,6 +24,7 @@ public:
|
|||
|
||||
private:
|
||||
bool was_paused{ false };
|
||||
float mouselook_speed{ 0.0025f };
|
||||
};
|
||||
|
||||
#endif // !PLAYER_INPUT_H
|
||||
|
|
Loading…
Reference in a new issue