src/video/android/SDL_androidclipboard.c
author Sam Lantinga <slouken@libsdl.org>
Sat, 02 Mar 2013 20:44:16 -0800
changeset 6950 1ddb72193079
parent 6888 e87e7a7b9d08
child 7117 23c36c7533dd
permissions -rw-r--r--
Added a mouse ID to the mouse events, which set to the special value SDL_TOUCH_MOUSEID for mouse events simulated by touch input.
slouken@6888
     1
/*
slouken@6888
     2
  Simple DirectMedia Layer
slouken@6888
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
slouken@6888
     4
slouken@6888
     5
  This software is provided 'as-is', without any express or implied
slouken@6888
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@6888
     7
  arising from the use of this software.
slouken@6888
     8
slouken@6888
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@6888
    10
  including commercial applications, and to alter it and redistribute it
slouken@6888
    11
  freely, subject to the following restrictions:
slouken@6888
    12
slouken@6888
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@6888
    14
     claim that you wrote the original software. If you use this software
slouken@6888
    15
     in a product, an acknowledgment in the product documentation would be
slouken@6888
    16
     appreciated but is not required.
slouken@6888
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@6888
    18
     misrepresented as being the original software.
slouken@6888
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@6888
    20
*/
slouken@6464
    21
#include "SDL_config.h"
slouken@6464
    22
slouken@6464
    23
#if SDL_VIDEO_DRIVER_ANDROID
slouken@6464
    24
slouken@6464
    25
#include "SDL_androidvideo.h"
slouken@6464
    26
slouken@6464
    27
#include "../../core/android/SDL_android.h"
slouken@6464
    28
slouken@6464
    29
int
slouken@6464
    30
Android_SetClipboardText(_THIS, const char *text)
slouken@6464
    31
{
slouken@6464
    32
	return Android_JNI_SetClipboardText(text);
slouken@6464
    33
}
slouken@6464
    34
slouken@6464
    35
char *
slouken@6464
    36
Android_GetClipboardText(_THIS)
slouken@6464
    37
{
slouken@6464
    38
	return Android_JNI_GetClipboardText();
slouken@6464
    39
}
slouken@6464
    40
slouken@6464
    41
SDL_bool Android_HasClipboardText(_THIS)
slouken@6464
    42
{
slouken@6464
    43
	return Android_JNI_HasClipboardText();
slouken@6464
    44
}
slouken@6464
    45
slouken@6464
    46
#endif /* SDL_VIDEO_DRIVER_ANDROID */