commit | 690f8bed6fc44e6b21cbf9ee1fd20fc8a79291e0 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Tue Jun 30 04:31:25 2020 -0500 |
committer | Siarhei Vishniakou <svv@google.com> | Tue Jun 30 05:18:56 2020 -0500 |
tree | c0433cdbdd3eab54fc01edf08c45b51a111e8d37 | |
parent | 8bacaaec2f63d7031a812b3ace59de719539e959 [diff] |
Add createAxis to reduce the size of a function While refactoring input code to enable -Wshadow, I encountered the block of code inside JoystickInputMapper that is used to create an Axis object. This creation can be moved to a separate function for simplicity. Bug: 142017994 Test: atest inputflinger_tests Change-Id: I76088ab054dcf24585837016fb57d6f2500ca5e3