2013-01-29 15:59:58 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Android Event System
|
|
|
|
*
|
|
|
|
* Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2013-12-04 14:37:57 +04:00
|
|
|
* Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
2013-01-29 15:59:58 +04:00
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2014-11-12 20:25:12 +03:00
|
|
|
#include <winpr/crt.h>
|
|
|
|
|
2013-01-29 15:59:58 +04:00
|
|
|
#include <freerdp/freerdp.h>
|
2014-09-12 19:13:01 +04:00
|
|
|
#include <freerdp/log.h>
|
|
|
|
|
|
|
|
#define TAG CLIENT_TAG("android")
|
2013-01-29 15:59:58 +04:00
|
|
|
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "android_freerdp.h"
|
2013-04-26 16:59:16 +04:00
|
|
|
#include "android_cliprdr.h"
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
BOOL android_push_event(freerdp* inst, ANDROID_EVENT* event)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
androidContext* aCtx = (androidContext*)inst->context;
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2013-01-29 15:59:58 +04:00
|
|
|
if (aCtx->event_queue->count >= aCtx->event_queue->size)
|
|
|
|
{
|
2015-03-11 07:29:37 +03:00
|
|
|
int new_size;
|
2015-06-10 19:57:05 +03:00
|
|
|
void* new_events;
|
2015-03-11 07:29:37 +03:00
|
|
|
new_size = aCtx->event_queue->size * 2;
|
2019-11-06 17:24:51 +03:00
|
|
|
new_events = realloc((void*)aCtx->event_queue->events, sizeof(ANDROID_EVENT*) * new_size);
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-03-11 07:29:37 +03:00
|
|
|
if (!new_events)
|
2015-06-16 17:03:34 +03:00
|
|
|
return FALSE;
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-03-11 07:29:37 +03:00
|
|
|
aCtx->event_queue->events = new_events;
|
|
|
|
aCtx->event_queue->size = new_size;
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
aCtx->event_queue->events[(aCtx->event_queue->count)++] = event;
|
2016-02-01 17:25:40 +03:00
|
|
|
return SetEvent(aCtx->event_queue->isSet);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
static ANDROID_EVENT* android_peek_event(ANDROID_EVENT_QUEUE* queue)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
ANDROID_EVENT* event;
|
|
|
|
|
|
|
|
if (queue->count < 1)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
event = queue->events[0];
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
static ANDROID_EVENT* android_pop_event(ANDROID_EVENT_QUEUE* queue)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
ANDROID_EVENT* event;
|
|
|
|
|
|
|
|
if (queue->count < 1)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
event = queue->events[0];
|
|
|
|
(queue->count)--;
|
|
|
|
|
|
|
|
for (i = 0; i < queue->count; i++)
|
|
|
|
{
|
|
|
|
queue->events[i] = queue->events[i + 1];
|
|
|
|
}
|
|
|
|
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
static BOOL android_process_event(ANDROID_EVENT_QUEUE* queue, freerdp* inst)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
ANDROID_EVENT* event;
|
2014-11-12 20:25:12 +03:00
|
|
|
rdpContext* context = inst->context;
|
2019-11-06 17:24:51 +03:00
|
|
|
androidContext* afc = (androidContext*)context;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2014-11-12 20:25:12 +03:00
|
|
|
while (android_peek_event(queue))
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
event = android_pop_event(queue);
|
|
|
|
|
|
|
|
if (event->type == EVENT_TYPE_KEY)
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
ANDROID_EVENT_KEY* key_event = (ANDROID_EVENT_KEY*)event;
|
2013-01-29 15:59:58 +04:00
|
|
|
inst->input->KeyboardEvent(inst->input, key_event->flags, key_event->scancode);
|
2016-02-01 17:25:40 +03:00
|
|
|
android_event_free((ANDROID_EVENT*)key_event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
else if (event->type == EVENT_TYPE_KEY_UNICODE)
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
ANDROID_EVENT_KEY* key_event = (ANDROID_EVENT_KEY*)event;
|
|
|
|
inst->input->UnicodeKeyboardEvent(inst->input, key_event->flags, key_event->scancode);
|
2016-02-01 17:25:40 +03:00
|
|
|
android_event_free((ANDROID_EVENT*)key_event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
else if (event->type == EVENT_TYPE_CURSOR)
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
ANDROID_EVENT_CURSOR* cursor_event = (ANDROID_EVENT_CURSOR*)event;
|
2016-10-06 14:31:25 +03:00
|
|
|
inst->input->MouseEvent(inst->input, cursor_event->flags, cursor_event->x,
|
|
|
|
cursor_event->y);
|
2016-02-01 17:25:40 +03:00
|
|
|
android_event_free((ANDROID_EVENT*)cursor_event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
2013-04-26 16:59:16 +04:00
|
|
|
else if (event->type == EVENT_TYPE_CLIPBOARD)
|
|
|
|
{
|
2014-11-12 20:25:12 +03:00
|
|
|
UINT32 size;
|
|
|
|
UINT32 formatId;
|
2019-11-06 17:24:51 +03:00
|
|
|
ANDROID_EVENT_CLIPBOARD* clipboard_event = (ANDROID_EVENT_CLIPBOARD*)event;
|
2014-11-12 20:25:12 +03:00
|
|
|
formatId = ClipboardRegisterFormat(afc->clipboard, "UTF8_STRING");
|
|
|
|
size = clipboard_event->data_length;
|
|
|
|
|
|
|
|
if (size)
|
2016-10-06 14:31:25 +03:00
|
|
|
ClipboardSetData(afc->clipboard, formatId, clipboard_event->data, size);
|
2014-11-12 20:25:12 +03:00
|
|
|
else
|
|
|
|
ClipboardEmpty(afc->clipboard);
|
|
|
|
|
|
|
|
android_cliprdr_send_client_format_list(afc->cliprdr);
|
2016-02-01 17:25:40 +03:00
|
|
|
android_event_free((ANDROID_EVENT*)clipboard_event);
|
2013-04-26 16:59:16 +04:00
|
|
|
}
|
2013-01-29 15:59:58 +04:00
|
|
|
else if (event->type == EVENT_TYPE_DISCONNECT)
|
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
android_event_free(event);
|
|
|
|
return FALSE;
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
return TRUE;
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
HANDLE android_get_handle(freerdp* inst)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
androidContext* aCtx;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!inst || !inst->context)
|
|
|
|
return NULL;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
aCtx = (androidContext*)inst->context;
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!aCtx->event_queue || !aCtx->event_queue->isSet)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
return aCtx->event_queue->isSet;
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
BOOL android_check_handle(freerdp* inst)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
androidContext* aCtx;
|
|
|
|
|
|
|
|
if (!inst || !inst->context)
|
|
|
|
return FALSE;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
aCtx = (androidContext*)inst->context;
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!aCtx->event_queue || !aCtx->event_queue->isSet)
|
|
|
|
return FALSE;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (WaitForSingleObject(aCtx->event_queue->isSet, 0) == WAIT_OBJECT_0)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!ResetEvent(aCtx->event_queue->isSet))
|
|
|
|
return FALSE;
|
2016-10-06 14:31:25 +03:00
|
|
|
|
|
|
|
if (!android_process_event(aCtx->event_queue, inst))
|
2013-01-29 15:59:58 +04:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
ANDROID_EVENT_KEY* android_event_key_new(int flags, UINT16 scancode)
|
|
|
|
{
|
|
|
|
ANDROID_EVENT_KEY* event;
|
2019-11-06 17:24:51 +03:00
|
|
|
event = (ANDROID_EVENT_KEY*)calloc(1, sizeof(ANDROID_EVENT_KEY));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-06-16 17:03:34 +03:00
|
|
|
if (!event)
|
|
|
|
return NULL;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
|
|
|
event->type = EVENT_TYPE_KEY;
|
|
|
|
event->flags = flags;
|
|
|
|
event->scancode = scancode;
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
static void android_event_key_free(ANDROID_EVENT_KEY* event)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2015-05-11 10:07:39 +03:00
|
|
|
free(event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2019-02-07 17:58:55 +03:00
|
|
|
ANDROID_EVENT_KEY* android_event_unicodekey_new(UINT16 flags, UINT16 key)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
ANDROID_EVENT_KEY* event;
|
2019-11-06 17:24:51 +03:00
|
|
|
event = (ANDROID_EVENT_KEY*)calloc(1, sizeof(ANDROID_EVENT_KEY));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-06-16 17:03:34 +03:00
|
|
|
if (!event)
|
|
|
|
return NULL;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
|
|
|
event->type = EVENT_TYPE_KEY_UNICODE;
|
2019-02-07 17:58:55 +03:00
|
|
|
event->flags = flags;
|
2013-01-29 15:59:58 +04:00
|
|
|
event->scancode = key;
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
static void android_event_unicodekey_free(ANDROID_EVENT_KEY* event)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2015-05-11 10:07:39 +03:00
|
|
|
free(event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
ANDROID_EVENT_CURSOR* android_event_cursor_new(UINT16 flags, UINT16 x, UINT16 y)
|
|
|
|
{
|
|
|
|
ANDROID_EVENT_CURSOR* event;
|
2019-11-06 17:24:51 +03:00
|
|
|
event = (ANDROID_EVENT_CURSOR*)calloc(1, sizeof(ANDROID_EVENT_CURSOR));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-06-16 17:03:34 +03:00
|
|
|
if (!event)
|
|
|
|
return NULL;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
|
|
|
event->type = EVENT_TYPE_CURSOR;
|
|
|
|
event->x = x;
|
|
|
|
event->y = y;
|
|
|
|
event->flags = flags;
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
static void android_event_cursor_free(ANDROID_EVENT_CURSOR* event)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2015-05-11 10:07:39 +03:00
|
|
|
free(event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2016-10-17 11:24:30 +03:00
|
|
|
ANDROID_EVENT* android_event_disconnect_new(void)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
ANDROID_EVENT* event;
|
2019-11-06 17:24:51 +03:00
|
|
|
event = (ANDROID_EVENT*)calloc(1, sizeof(ANDROID_EVENT));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-06-16 17:03:34 +03:00
|
|
|
if (!event)
|
|
|
|
return NULL;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
|
|
|
event->type = EVENT_TYPE_DISCONNECT;
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
static void android_event_disconnect_free(ANDROID_EVENT* event)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2015-05-11 10:07:39 +03:00
|
|
|
free(event);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
ANDROID_EVENT_CLIPBOARD* android_event_clipboard_new(void* data, int data_length)
|
2013-04-26 16:59:16 +04:00
|
|
|
{
|
|
|
|
ANDROID_EVENT_CLIPBOARD* event;
|
2019-11-06 17:24:51 +03:00
|
|
|
event = (ANDROID_EVENT_CLIPBOARD*)calloc(1, sizeof(ANDROID_EVENT_CLIPBOARD));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-06-16 17:03:34 +03:00
|
|
|
if (!event)
|
|
|
|
return NULL;
|
2013-04-26 16:59:16 +04:00
|
|
|
|
|
|
|
event->type = EVENT_TYPE_CLIPBOARD;
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2013-04-26 16:59:16 +04:00
|
|
|
if (data)
|
|
|
|
{
|
|
|
|
event->data = malloc(data_length);
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2015-06-16 17:03:34 +03:00
|
|
|
if (!event->data)
|
|
|
|
{
|
|
|
|
free(event);
|
|
|
|
return NULL;
|
|
|
|
}
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2013-04-26 16:59:16 +04:00
|
|
|
memcpy(event->data, data, data_length);
|
|
|
|
event->data_length = data_length;
|
|
|
|
}
|
|
|
|
|
|
|
|
return event;
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
static void android_event_clipboard_free(ANDROID_EVENT_CLIPBOARD* event)
|
2013-04-26 16:59:16 +04:00
|
|
|
{
|
2015-05-11 10:07:39 +03:00
|
|
|
if (event)
|
2013-04-26 16:59:16 +04:00
|
|
|
{
|
2015-05-11 10:07:39 +03:00
|
|
|
free(event->data);
|
2013-04-26 16:59:16 +04:00
|
|
|
free(event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
BOOL android_event_queue_init(freerdp* inst)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
|
|
|
androidContext* aCtx = (androidContext*)inst->context;
|
2016-02-01 17:25:40 +03:00
|
|
|
ANDROID_EVENT_QUEUE* queue;
|
2019-11-06 17:24:51 +03:00
|
|
|
queue = (ANDROID_EVENT_QUEUE*)calloc(1, sizeof(ANDROID_EVENT_QUEUE));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!queue)
|
2015-06-16 17:03:34 +03:00
|
|
|
{
|
|
|
|
WLog_ERR(TAG, "android_event_queue_init: memory allocation failed");
|
|
|
|
return FALSE;
|
|
|
|
}
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
queue->size = 16;
|
|
|
|
queue->count = 0;
|
|
|
|
queue->isSet = CreateEventA(NULL, TRUE, FALSE, NULL);
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!queue->isSet)
|
2015-06-16 17:03:34 +03:00
|
|
|
{
|
2016-10-06 14:31:25 +03:00
|
|
|
free(queue);
|
2015-06-16 17:03:34 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
queue->events = (ANDROID_EVENT**)calloc(queue->size, sizeof(ANDROID_EVENT*));
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!queue->events)
|
2015-06-16 17:03:34 +03:00
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
WLog_ERR(TAG, "android_event_queue_init: memory allocation failed");
|
|
|
|
CloseHandle(queue->isSet);
|
|
|
|
free(queue);
|
2015-06-16 17:03:34 +03:00
|
|
|
return FALSE;
|
|
|
|
}
|
2016-02-01 17:25:40 +03:00
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
aCtx->event_queue = queue;
|
2015-06-16 17:03:34 +03:00
|
|
|
return TRUE;
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
void android_event_queue_uninit(freerdp* inst)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
androidContext* aCtx;
|
|
|
|
ANDROID_EVENT_QUEUE* queue;
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (!inst || !inst->context)
|
|
|
|
return;
|
|
|
|
|
|
|
|
aCtx = (androidContext*)inst->context;
|
|
|
|
queue = aCtx->event_queue;
|
|
|
|
|
|
|
|
if (queue)
|
2013-01-29 15:59:58 +04:00
|
|
|
{
|
2016-02-01 17:25:40 +03:00
|
|
|
if (queue->isSet)
|
|
|
|
{
|
|
|
|
CloseHandle(queue->isSet);
|
|
|
|
queue->isSet = NULL;
|
|
|
|
}
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if (queue->events)
|
|
|
|
{
|
2016-10-06 14:31:25 +03:00
|
|
|
free(queue->events);
|
2016-02-01 17:25:40 +03:00
|
|
|
queue->events = NULL;
|
|
|
|
queue->size = 0;
|
|
|
|
queue->count = 0;
|
|
|
|
}
|
2016-10-06 14:31:25 +03:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
free(queue);
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
2016-02-01 17:25:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void android_event_free(ANDROID_EVENT* event)
|
|
|
|
{
|
|
|
|
if (!event)
|
|
|
|
return;
|
|
|
|
|
2016-10-06 14:31:25 +03:00
|
|
|
switch (event->type)
|
|
|
|
{
|
|
|
|
case EVENT_TYPE_KEY:
|
|
|
|
android_event_key_free((ANDROID_EVENT_KEY*)event);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case EVENT_TYPE_KEY_UNICODE:
|
|
|
|
android_event_unicodekey_free((ANDROID_EVENT_KEY*)event);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case EVENT_TYPE_CURSOR:
|
|
|
|
android_event_cursor_free((ANDROID_EVENT_CURSOR*)event);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case EVENT_TYPE_DISCONNECT:
|
|
|
|
android_event_disconnect_free((ANDROID_EVENT*)event);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case EVENT_TYPE_CLIPBOARD:
|
|
|
|
android_event_clipboard_free((ANDROID_EVENT_CLIPBOARD*)event);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
2013-01-29 15:59:58 +04:00
|
|
|
}
|
|
|
|
}
|