Skip to content

Commit

Permalink
Major revision arcade1&2.py
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Vegz78 committed Jul 5, 2021
1 parent 4d69371 commit 03a88f8
Show file tree
Hide file tree
Showing 4 changed files with 1,612 additions and 743 deletions.

0 comments on commit 03a88f8

Please sign in to comment.