Skip to content

Commit 03a88f8

Browse files
author
Vegz78
committed
Major revision arcade1&2.py
Attempt at optimizing arcade1&2.py by -Single common auto-calibration function which calibrates more quickly the controller's min-max value intervals for all directional EV_ABS to EV_KEY conversion functions, without the former need for a full stroke in both directions of one axis to calibrate, and finds most used value intervals of the INT16 value variable in increments of 2^x from -32767 to 32767 -Quicker EV_ABS to EV_KEY directional conversion functions with far fewer if branches for every joystick movement -Moved axes inversion boolean variables branches to lambda function in config section -Cleaned up variable and function names, switched to boolean variables for True/False global variable settings -Attempt at clarifying the use/own modifications of arcade1&2.py with more code comments and reformating of the code
1 parent 4d69371 commit 03a88f8

File tree

4 files changed

+1612
-743
lines changed

4 files changed

+1612
-743
lines changed

0 commit comments

Comments
 (0)