'Convert ABS_X and ABS_Y into meaningful values

I am new to mapping a gaming controller and I am attempting to make sense of the ABX_X and ABS_Y values that return from the joystick. My goal is to take those values and turn them into "move forward", "move back", "turn" etc. I cannot seem to figure out what the formula is for converting the values that come in to actions. Below is my ABSInfo data (from Python InputDevice) and also some sample values. Any help to steer me in the correct direction would be very helpful.

ABS Info Capabilities

('EV_ABS', 3): [(('ABS_X', 0), AbsInfo(value=32768, min=0, max=65535, fuzz=0, flat=4095, resolution=0)), (('ABS_Y', 1), AbsInfo(value=32768, min=0, max=65535, fuzz=0, flat=4095, resolution=0))

Sample Values For Y

Y VALUE: 3101
Y VALUE: 5241
Y VALUE: 6931
Y VALUE: 9597
Y VALUE: 12059
Y VALUE: 14990
Y VALUE: 17467
Y VALUE: 19878
Y VALUE: 32768

Sample values for X:

X VALUE: 23596
X VALUE: 14042
X VALUE: 0
X VALUE: 818
X VALUE: 5943
X VALUE: 17212
X VALUE: 32768


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source