Hi!
How am i able to get mouse movement working as an analog stick on a gamepad ?
I need a value between -1 and 1… I have tried with scale and clamp to get proper results, but i don’t get the right “feeling” when using the mouse.
In my code, i would like to treat it the same way, no matter what kind of input device i use (keys, mouse or gamepad)
Hi,
I Guess something like that could work, but then i need different methods to select between mouse and keyboard.
I thought maybe some “Delta Mouse Movement” could work. But i guess i need to add different methods, depending on the inputs.
actually it might be the best, then i also could have different Roll / Pitch values from the keys, depending on how long they are pressed…
Perhaps I misunderstood your usage.
I have the code above in my project and it is giving accurate input for my rotate function using pointer Delta from the input settings.
I made a static poco class for mine so I can just say “InputSystem_Manager.PointerData.CurrentMousePosition” from anywhere in the project.