this post was submitted on 17 Mar 2024
18 points (100.0% liked)

GameDev

2725 readers
2 users here now

A community about game development.

Rules:

More rules might follow if they become necessary; general rule is don't be a pain in the butt. Have fun! ♥

GameDev Telegram chat.

founded 1 year ago
MODERATORS
 

Many games support both keyboard/mouse and controller input. Many users (myself included) may wish to switch their input method mid-game, but what is the best way of handling this?

There are two potential solutions:

  1. Have the two input methods combine and reach a consensus (e.g. pressing W on the keyboard while moving the left thumb stick to the left will cause the player to move forward and left)
  2. Have only one input method work at any given time, but switch automatically depending on what the player most recently used.

Technically there is a third option, which is to have the user manually switch between the two input methods in a menu somewhere. I don't consider this a real option because the user experience would be terrible.

So, which solution do you think is better and why?

you are viewing a single comment's thread
view the rest of the comments
[–] Confetti_Camouflage@pawb.social 8 points 6 months ago

The consensus solution. The Steam Deck and Steam Controller's touchpads can result in both mouse and joystick input being used simultaneously. Locking down which input is used prevents this from working as intended.