Mouse and Keyboard AND Controller
Hello, i have problem with input methods, i need to make a unviersal controls for my game. (I'm using First Person movement.)
- when i use "Mouse and Keyboard", I can setup all butons for gamepad except "Interaction" - when i use "Keyboard or Controller" i can setup interaction button (InteractionA, InteractionB) but mouse doesn't work in that case.
I can not publish my game without a universal control.
I would be grateful for the help.
If some issue like this has already been discussed, I would be grateful for the link, I searched on the forum but found nothing.
Comments
AC.KickStarter.settingsManager.inputMethod = InputMethod.MouseAndKeyboard;
You could place this inside the Run () function of a custom Action, and call it when the player clicks e.g. a menu Button. Custom actions are detailed here.
Going further, you could write a custom script that detects the first control input to be used (e.g. check if "InteractionA" is used, or the mouse cursor is moved, and change the inputMethod variable based on that, but let's see how far we can go with defining those new inputs first.