blob: 8380b0b3b1f9e5226182b3bb2c0473f24e1e9a1f [file] [log] [blame]
/* Copyright (C) 2015 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
*/
#include "android-qemu2-glue/qemu-control-impl.h"
#include "android/emulation/control/finger_agent.h"
#include "android/hw-fingerprint.h"
static void finger_setTouch(bool isTouching, int touchId)
{
if (isTouching) {
android_hw_fingerprint_touch(touchId);
} else {
android_hw_fingerprint_remove();
}
}
static const QAndroidFingerAgent sQAndroidFingerAgent = {
.setTouch = finger_setTouch
};
const QAndroidFingerAgent* const gQAndroidFingerAgent = &sQAndroidFingerAgent;