Triggering button input with gamepad stick #605
-
Hello, Converting my game to 0.15 and really like the API clarity. One thing I'm struggling with, though, is how to convert some button-like actions that use gamepad sticks. Here, for instance, is some non-functional code partway ported to 0.15:
This code is configuring an Is there any way to configure this action such that flicking the right stick up triggers a button press? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You want |
Beta Was this translation helpful? Give feedback.
-
Perfect, thanks! |
Beta Was this translation helpful? Give feedback.
You want
GamepadControlDirection
:) I'd link you the docs.rs page, but evidently it's not showing up there because of #606!