Change in GetMouseScreenPosition()

Wouldn’t it be better to define a new action for mouse movement in the PlayerInputActions and read this value for the GetMouseScreenPosition method? This would allow for other types of movement input (i.e. a joystick) to be easily added.

Sure if you wanted you could refactor that to work with an Action which would indeed let you easily swap between mouse and joystick.
I tried to keep the refactoring as close to the previous code as possible but yup if I were to continue working on this game with the goal to eventually publish on consoles I would definitely refactor that part to enable joystick support.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms