Using the new Input in UEFN 41.30
Guidebeginnercompiles

Using the new Input in UEFN 41.30

Updated beginnerRelease NotesCode verified

Using the new Input in UEFN 41.30

UEFN added Input (Verse::Input.available_input_devices) in this release. Let's wire up a tiny working example.

How it works

Input is part of the freshly-updated Verse API. The snippet below is a complete, compilable Verse device you can drop into a project to start experimenting.

The code

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }

# Demonstrates the new Input type added this release.
input_example := class(creative_device):
    OnBegin<override>()<suspends>:void =
        Print("Exploring the new Input API")

Try it yourself

  1. Create a new Verse file in the Verse Explorer.
  2. Paste the code above and build Verse code.
  3. Place the device in your level and press play.

References

  • Verse API reference: https://dev.epicgames.com/documentation/en-us/fortnite/verse-api

Turn this into a guided course

Add New in UEFN 41.30: Input to your free study plan — we'll suggest related pages and stitch the lot into one compile-checked, self-guided lesson with worked examples and quizzes.

Original guide generated by Verse Island from the Verse/UEFN knowledge base, with references to the Epic Games sources above. Code is validated against the knowledge base.

Comments

    Sign in to vote, comment, or suggest an edit.Sign in