Replies: 3 comments
-
Tnua does not handle player input at all - even if you only support a keyboard, you are still expected to read the input yourself and call the methods of Refer to the example to see how it's done: Line 130 in 3562f35 |
Beta Was this translation helpful? Give feedback.
-
Not really "compatible with Tnua" because Tnua does not need compatibility, but I believe the community standard is Leafwing Input Manager. This is what I use, and it works nice with Tnua. It supports keyboard, gamepad, and mouse - but I don't think it supports touchscreen (and I don't even know what you mean by "sensor"). I don't know if you can extend it to add support for these yourself. |
Beta Was this translation helpful? Give feedback.
-
By sensor I meant touchscreen input support. Thanks for help! |
Beta Was this translation helpful? Give feedback.
-
Cross-Platform Input Support and Integration with Tnua
Hello,
I am currently developing a cross-platform game and looking to implement an input manager that can handle sensor, gamepad, and keyboard inputs seamlessly across platforms (desktop, mobile, etc.).
I have a couple of questions regarding the Tnua crate's capabilities and flexibility with respect to input handling:
Does Tnua support sensor, gamepad, and keyboard inputs natively, or will I need to handle these input types separately and feed them into Tnua's movement functions?
Is it possible to integrate Tnua with a custom input system? For example, I am considering using the Virtual Joystick plugin for mobile input. Can Tnua receive input from this (or similar) plugins to trigger movement actions like forward walk, jump, etc.? Does Tnua expose functions or events for actions such as walking, jumping, or dashing that could be fed these inputs?
Context:
I am building a game that needs to support input from multiple devices (touch on mobile, gamepads, keyboard on desktop, etc.), and I am wondering if there is already an input management solution compatible with Tnua or if I should create one myself. Essentially, I'd like to know how easily I can hook up inputs from different devices and sensors into Tnua's movement system.
Any guidance or information would be appreciated!
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions