I am trying to support both mouse/keyboard and gamepad for a twin-stick-shooter style game. I’m scratching my head at gamepad axis events and how deceiving they are.
My axis events are mapped like so:
With my gamepads disconnected I receive gamepad axis events with a value of 0.0f every frame. With no gamepads connected, I’d expect this to either not get called or be NaN. I feel like I’m missing a key part of this story, do people dynamically bind/unbind axis based on gamepad connection polling?