This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (i = 0; i < 2; i++) { | |
input_set_abs_params(input_dev, ABS_X+i, 32, 223, 0, 10); //In theory, all axes operate from 0 to 255. In practice, the plastic enclosure and other mechanical realities limit extremes and there is a great variance in achievable extremes and centers. Values below are based on worst-case scenarios for extremes among a set of controllers. -Jeff Griffin | |
input_set_abs_params(input_dev, ABS_RX+i, 50, 205, 0, 10); | |
input_set_abs_params(input_dev, ABS_GAS+i, -149, 222, 0, 10); // False bottom prevents negative gas/brake. In practice, min/center~35, max~222 | |
input_set_abs_params(input_dev, ABS_HAT0X+i, -1, 1, 0, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment