How to check for discrete joystick movement along axis?

I’m creating an inventory system and need to be able to move in discrete units along the inventory grid to make selections. With keyboard input I imagine this would be simple, just use getkeyup or whatever to move one unit at a time. Any suggestions ob how to accomplish the same thing using crossplatforminput? I’m using a ps4 controller and can’t get my selector outline to precisely move one unit at a time just with getaxis. Thanks.

We use custom scripts for stuff like this. It has a

Dictionary<string,bool> 

that records the state of a joystick axis. So when joystick axis is above a certain value we set the dictionary entry to true and a method that returns true if and only if the dictionary entry wasn’t already true. Thus making it act like a button press. Then in an update loop we check all true dictionary entries to see if the corresponding axis value is below a threshold marking it as released.