- Home /
Getting ScrollWheel/Joystick Direction w/ InputSystem
Is it possible to intercept the value of the current direction the axis you just rebound to? It seems that when a RebindOperation is running all input is 'eaten'.
The use case is binding an action to ScrollWheel Up, or a joystick axis for actions that are treated as buttons. I'll preface this with the fact that I do have scrollwheel input working when manually assigned in the editor, however whenever this input is caught in PerformInteractiveRebinding() it simply returns the fact that it was moved, and from what I can see it is not possible to get what the value of the axis was at the time that it was caught by the RebindOperation.
What I've tried: // All methods were tested in the callbacks: // OnApplyBinding // OnCompleted // OnPotentialMatch // I also attempted all of these via context.selectedControl... variants. // along with reading context.selectedControl.path from outside my rebind operation (at the same time it's running)
(float)context.candidates[x].ReadValueAsObject()
context.candidates[x].EvaluateMagnitude();
context.scores[x]
context.magnitudes[x]
Your answer
Follow this Question
Related Questions
How do you change the joystick axis boundary from a circle to a square? 1 Answer
Rotation of a object depending on where the joystick is facing 1 Answer
Keyboard/Joystick Inputs Do Not Work until Mouse Clicked 0 Answers
Finding the right joystick for aiming/shooting 1 Answer
Gamepad input, axis OR button 0 Answers