Examples
These examples show user-facing GPC3 patterns using the public language and function surface. They are intended as starting points: copy the pattern, adjust the constants and tuning values, then test one behavior at a time.
Example Groups
- Accessibility Controls covers remapping, one-handed modifiers, and hold-to-toggle conversion.
- Controller Diagnostics covers input events, axis readings, and output-path tests.
- Input Sequencing covers deliberate timed sequences and reusable device-test steps.
- Stick Calibration covers deadzones, scaling, response curves, stick swaps, drift correction, and smoothing.
Safe Editing
Keep tuning values near the top of the script, use named constants such as BUTTON_10 and STICK_1_Y, and clamp analog output before writing it with set_val() when math can exceed normal controller ranges.