Saturate analogs based on range and not range mod.

This commit is contained in:
Themaister 2013-12-31 18:42:49 +01:00
parent 822e48bae7
commit 0e47ad02fe

View File

@ -772,8 +772,8 @@ void input_overlay_poll(input_overlay_t *ol, input_overlay_state_t *out, int16_t
{
float x_dist = x - desc->x;
float y_dist = y - desc->y;
float x_val = x_dist / desc->range_x_mod;
float y_val = y_dist / desc->range_y_mod;
float x_val = x_dist / desc->range_x;
float y_val = y_dist / desc->range_y;
float x_val_sat = x_val / desc->analog_saturate_pct;
float y_val_sat = y_val / desc->analog_saturate_pct;