- Home /
Best Practice Multiple Control Methods
I´ve wondered what the "correct" way to implement keyboard and controller controlls, which the player can switch between, is.
I thought that I´d do a script which the controller and keyboard send their controlls to and this script controlls the characters.
Is there a "cleaner" method to doing this?
Answer by FortisVenaliter · Sep 28, 2017 at 06:10 PM
The best practice in AAA companies is as follows (I know because I had to implement this requirement once):
Have a splash screen after the logos that requires the user to 'press any button to continue'.
Whichever control method the user chooses to press a button on, assume that's the primary controller and all others are secondary, unless it's disconnected from the system, at which point you pause and prompt the user to reconnect.
However, many games have been going the hybrid route lately, and I personally really like it. There are some games where I can use a mouse in my right hand and a Steam controller in my left to play, and that's really neat. Usually you can implement this by allowing either/or at any time. If the user presses forward on WASD and backward on the gamepad, they should be cumulative and cancel out. If they press jump on either, it should work, etc.
Your answer
Follow this Question
Related Questions
How do i change controller from keyboard to mouse?? 1 Answer
Removing Joystick Controls 2 Answers
Keyboard / Mouse control for FPS 0 Answers
How to properly set the position clicked by the mouse? 0 Answers