Hi!
I have a question about the Mouse 0 and Mouse 1 inputs on controllers. I'm trying to set up controller support. I've added a script that updates the movement and input methods when a controller is plugged in or unplugged—specifically switching between "Point and Click" and "Direct" for Movement Method, and between "Mouse and Keyboard" and "Keyboard and Controller" for Input Method.
I've managed to link the left stick to movement and the right stick to mouse/cursor control, and in general, the inputs work fine using the classic Input Manager. However, I'm having trouble with the click inputs for "Interact" and "Inspect"—I can't seem to get those inputs to register on any controller. I'm sure I'm missing something obvious, but I couldn't find a tutorial or post on the topic.
I'm using Adventure Creator 1.82.6 and Unity 6 (6000.0.31f1).
My interface settings are:
Movement Method: Point and Click / Mouse and Keyboard
Interaction Method: Context Sensitive
Cursor: Unity Cursor (if that's relevant)
I also have "Mouse clicks have default functionality" checked and "Unity UI blocks interaction and movement" enabled.
Thank you in advance!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Name your inputs "InteractionA" and "InteractionB" for replacements of the left and mouse clicks respectively.
That did the trick! Thank you. What about "run"? the repeated press of "InteractionA" doesn't seem to trigger it.
Should do - you can configure the delay between clicks in the GameEngine's Player Input component.
I tried and it doesn't seem to make a difference. If I double tap (A) while over a hotspot the character runs. If I try to do the same for the navmesh or any other location in the scene it does not work. I also tried holding the button as per the manual description and that doesn't work either.
To clarify: are you using Point And Click or Direct movement now? If you're using Direct, running is a case of holding down a separate input named "Run".
With Point And Click, I'm testing in the 2D Demo game with Keyboard Or Controller input and can't recreate any double-tap issue for running.
When the controller is connected there's a script that switches Point and Click to Direct and to Keyboard or Controller. That's probably it. I need to create a "Run" input in the manager to get it to trigger. I will check now. Thank you.
Yes! That did it! Thank you!