|
@@ -1,14 +1,17 @@
|
|
|
# Dawdlehorn - Current State
|
|
# Dawdlehorn - Current State
|
|
|
|
|
|
|
|
-## Current Task: Fix Gamepad Debug Triggers Display
|
|
|
|
|
-Fixed the triggers section of the Gamepad Debug interface to show proper button names (ZR, R, ZL, L for Nintendo controllers) instead of generic "L" and "R" labels.
|
|
|
|
|
|
|
+## Current Task: DPAD Axis Mapping and Dead Zone Immunity (COMPLETED)
|
|
|
|
|
+Implemented proper DPAD axis handling for Nintendo controllers, making the DPAD axis immune to dead zone filtering and mapping raw values to degrees for better usability.
|
|
|
|
|
|
|
|
## Current Task Checklist
|
|
## Current Task Checklist
|
|
|
- [x] Read current project state from memory bank
|
|
- [x] Read current project state from memory bank
|
|
|
-- [x] Examine gamepad debug code to understand triggers issue
|
|
|
|
|
-- [x] Update triggers section to show ZR, R, ZL, L instead of generic "triggers"
|
|
|
|
|
-- [x] Update memory bank with new controller information
|
|
|
|
|
-- [ ] Test the fix with browser
|
|
|
|
|
|
|
+- [x] Analyze DPAD axis implementation and dead zone filtering
|
|
|
|
|
+- [x] Implement DPAD axis immunity to dead zone filtering
|
|
|
|
|
+- [x] Map DPAD values according to specification
|
|
|
|
|
+- [x] Test the implementation
|
|
|
|
|
+- [x] Update DPAD mapping with correct raw values and degrees
|
|
|
|
|
+- [x] Update display to show DPAD directions in user-friendly format
|
|
|
|
|
+- [x] Update memory bank with changes
|
|
|
|
|
|
|
|
## Previous Task: Custom Gamepad Mapping Implementation (COMPLETED)
|
|
## Previous Task: Custom Gamepad Mapping Implementation (COMPLETED)
|
|
|
- [x] Research gamepad API limitations and solutions
|
|
- [x] Research gamepad API limitations and solutions
|
|
@@ -91,6 +94,19 @@ Fixed the triggers section of the Gamepad Debug interface to show proper button
|
|
|
- **Trigger Names**: ZL (left trigger), ZR (right trigger), L (left bumper), R (right bumper)
|
|
- **Trigger Names**: ZL (left trigger), ZR (right trigger), L (left bumper), R (right bumper)
|
|
|
|
|
|
|
|
## Recent Changes
|
|
## Recent Changes
|
|
|
|
|
+- **DPAD Axis Mapping Implementation**: Made DPAD axis immune to dead zone filtering
|
|
|
|
|
+- **Raw Value Mapping**: Mapped Nintendo controller DPAD raw values to degrees:
|
|
|
|
|
+ - 1.29 = neutral (not pressed) → null
|
|
|
|
|
+ - 0.14 = down → 270°
|
|
|
|
|
+ - -0.14 = down right → 315°
|
|
|
|
|
+ - -0.43 = right → 0°
|
|
|
|
|
+ - -0.71 = up right → 45°
|
|
|
|
|
+ - -1 = up → 90°
|
|
|
|
|
+ - 1 = up left → 135°
|
|
|
|
|
+ - 0.71 = left → 180°
|
|
|
|
|
+ - 0.43 = down left → 225°
|
|
|
|
|
+- **User-Friendly Display**: Updated DPAD display to show directional names (e.g., "Up-Right (45°)")
|
|
|
|
|
+- **Dead Zone Immunity**: DPAD axis now bypasses dead zone filtering for precise directional input
|
|
|
- Fixed triggers display in gamepad debug interface
|
|
- Fixed triggers display in gamepad debug interface
|
|
|
- Now shows proper button names based on controller type:
|
|
- Now shows proper button names based on controller type:
|
|
|
- Nintendo: ZL/ZR (triggers), L/R (bumpers)
|
|
- Nintendo: ZL/ZR (triggers), L/R (bumpers)
|