Skip to content

Commit

Permalink
Scale input to account for deadzones (#17015)
Browse files Browse the repository at this point in the history
# Objective

Fixes #3450 

## Solution

Scale the input to account for the range

## Testing

Updated unit tests

## Migration Guide

`GamepadButtonChangedEvent.value` is now linearly rescaled to be from
`0.0..=1.0` (instead of `low..=high`) and
`GamepadAxisChangedEvent.value` is now linearly rescaled to be from
`-1.0..=0.0`/`0.0..=1.0` (accounting for the deadzone).
  • Loading branch information
BenjaminBrienen authored Jan 3, 2025
1 parent 120b733 commit 43db44c
Showing 1 changed file with 277 additions and 127 deletions.
Loading

0 comments on commit 43db44c

Please sign in to comment.