[native] Merge conditionals in InputStateContainer
Summary: Minor change which merges conditional logic in InputStateContainer since the code in each block is the exact same.
Test Plan: Flow, close reading.
Reviewers: atul, palys-swm, def-au1t
Reviewed By: atul
Subscribers: ashoat, Adrian
Differential Revision: https://phab.comm.dev/D4509