Hi, this is (in pseudocode) the behaviour I want to create:
if (Input.getButtonDown( someAxis.positiveButton )) //do smoething if (Input.getButtonDown( someAxis.negativeButton )) //do smoething else
I found on another thread following solution:
if (Input.GetButtonDown("someAxis") && Input.GetAxisRaw("someAxis") > 0) //do something if (Input.GetButtonDown("someAxis") && Input.GetAxisRaw("someAxis") < 0) //do something else
But this doesn’t work for following case:
Let’s say I keep “A” pressed cosntantly and while keeping A pressed I press D every now end then.
I want to know every time that D is pressed even if A is pressed at the same time, but GetAxisRaw will only go to 0, so the corresponding function won’t trigger.
How do I trigger an action every time the positive or negative Key of an Axis are pressed?