def get_trig_val(abs_val: int, max_unit: int, abs_limit: int) -> int:
    """Get the corresponding trigger value to a specific limit. This evenly
    devides the value so that the more you press the trigger, the higher the
    output value.

    abs_val - The current trigger value
    max_unit - The maximum value to remap the trigger value
    abs_limit - The maximum range of the trigger
    """

    inc = abs_limit / max_unit
    return int(abs_val / inc)