Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can also download Eagle's feature template from this link to see an example of how it is implemented.

...

Based on the OS name, you can call an event or function to show the on-screen keyboard. However, since your application is running using Pixel Streaming, you will need to inform the front end to show the on-screen keyboard first and then receive the user input data from the front end. To do this, you need to send a Pixel Streaming message with the following JSON payload {"cmd":"lunchKeyBoard" , "id":"ShowOnscreenKeyboard"}

...

#TEXTID"}

#TEXTID can be replaced by any id.

in eagle feature template you can head over to OnScreenKeyboard Widget Blueprint to see our sample code. in this example we are checking if the text box has focus (meaning user has touched inside the textbox) immediately after this is done we send the message to front end to show the on screen keyboard.

...

After user has  typed down their input string and confirmed it via the button on eagle’s front end, front end will send a message to Unreal with the following hierarchy 

{ "ClipBoardData"type" : "TextCommitedForWidgetUsingE3dsOnscreenKeyboard",

"value": "#InputString" }

Where #InputString is the string that the user has typed down; now you can parse this string as your application demands. 

...

image-20240813-134321.pngImage Added

In the eagle feature template we are sending the "ShowOnscreenKeyboard" message when the user clicks on the Text Box and once the user has confirmed the input the string is received and copied into the Text Box in the widget. You can find this example in the “OnScreenKeyboard” Widget Blueprintan event is bound which fires when a pixel streaming message is received by unreal and if it is the type of "TextCommitedForWidgetUsingE3dsOnscreenKeyboard" the value will be read and directly set on the textbox.