PlayStation Mobile provides a simple Clipboard
class to provide copy and paste functions.
This recipe shows how to add basic copy and paste support to your application.
Open PlayStation Mobile Studio and create a new project. We are going to make use of the UI system for this recipe, so be sure to add a reference to Sce.PlayStation.HighLevel.UI
. The full project is available as Ch9_Example4
.
Open AppMain.cs
and replace the code there with the following code:
using System; using System.Collections.Generic; using Sce.PlayStation.Core; using Sce.PlayStation.Core.Environment; using Sce.PlayStation.Core.Graphics; using Sce.PlayStation.Core.Input; using Sce.PlayStation.HighLevel.UI; namespace Ch9_Example4 { public class AppMain { private static void Main(string [] args){ var graphics = new GraphicsContext(); UISystem.Initialize(graphics); var scene = new Scene(); var textCopied =...