Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/britzl/defold-clipboard
Defold native extension to access the clipboard
https://github.com/britzl/defold-clipboard
defold defold-library
Last synced: about 2 months ago
JSON representation
Defold native extension to access the clipboard
- Host: GitHub
- URL: https://github.com/britzl/defold-clipboard
- Owner: britzl
- License: mit
- Created: 2017-10-17T09:07:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-06T07:14:42.000Z (11 months ago)
- Last Synced: 2024-10-25T10:36:16.781Z (about 2 months ago)
- Topics: defold, defold-library
- Language: C++
- Size: 183 KB
- Stars: 15
- Watchers: 5
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-defold - Clipboard
README
![](logo.png)
# Defold Clipboard
[Defold](https://www.defold.com) 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](http://www.defold.com/manuals/libraries/). 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](https://github.com/britzl/defold-clipboard/releases).
## Usage
### clipboard.copy(text)
Copy text to the clipboard.**PARAMETERS**
* ```text``` (string)### clipboard.paste()
Get text from the clipboard.**RETURNS**
* ```text``` (string)