One-shot input bindings + mouse wheel up and down support

As a developer it’s hard to set up the input action system to work with one-shot inputs like mouse wheel up/down.

Consider the action “zoom camera in”. This should be bound to mouse wheel up. There are two problems here.

  • Mouse wheel up is a one-shot input event, not a persistent input that can be pressed and held
  • Input actions only support persistent inputs that represent a variable state, like a key press
  • There is no mouse wheel up/down keycodes to bind to

So this feature request has two parts.

  1. Add MouseWheelUp and MouseWheelDown
  2. Add one-shot input actions that fire when triggered instead of holding a persistent state
5 Likes

I second this. It’s strange that I have to create a separate system for handling scroll input. This also makes it difficult to add key rebinding to my games (e.g. swapping weapons).