Skip to content

Defold native extension to access the clipboard

License

Notifications You must be signed in to change notification settings

BigButton-Co/defold-clipboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defold Clipboard

Defold native extension to access the clipboard.

System requirements

The extension currently supports OSX, Windows, Linux (contributed by AsakuraMizu), iOS and Android.

Limitations

The extension will not support HTML5 as clipboard access is restricted in browsers due to security reasons.

Installation

You can use the Clipboard extension in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add:

https://github.com/britzl/defold-clipboard/archive/master.zip

Or point to the ZIP file of a specific release.

Usage

clipboard.copy(text)

Copy text to the clipboard.

PARAMETERS

  • text (string)

clipboard.paste()

Get text from the clipboard.

RETURNS

  • text (string)

About

Defold native extension to access the clipboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 64.1%
  • Java 16.6%
  • Objective-C++ 10.3%
  • C 9.0%