summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2017-11-10 14:37:37 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2017-11-10 14:37:37 -0500
commitd57967f1f614a4426d2323a14c6dcd5c37ee1aa3 (patch)
tree94ef9b03111eee6e15abc02f148cb7a20b513069 /sdl2/bindings.scm
parentc42c8a8589dff430c07684fb0044295a953cdd4c (diff)
Add clipboard bindings.
* sdl2/bindings.scm (sdl-get-clipboard-text, sdl-set-clipboard-text, sdl-has-clipboard-text): New procedures. * sdl2/clipboard.scm: New file. * Makefile.am (SOURCES): Add it.
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r--sdl2/bindings.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm
index 180f887..4644f1e 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -1130,3 +1130,17 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign sdl-is-game-controller
sdl-bool "SDL_IsGameController" (list int))
+
+
+;;;
+;;; Clipboard
+;;;
+
+(define-foreign sdl-get-clipboard-text
+ '* "SDL_GetClipboardText" '())
+
+(define-foreign sdl-set-clipboard-text
+ int "SDL_SetClipboardText" '(*))
+
+(define-foreign sdl-has-clipboard-text
+ int "SDL_HasClipboardText" '())