Files
hardware_RedLintu16_compat/libinput/android_view_KeyEvent.cpp
LuK1337 f7f5e576a3 compat: libinput: Provide KeyEvent fromNative/toNative JNI methods
QCOM WFD depends on them.

Change-Id: I5bea4140acd48681f0c78c2d7677cce2347f33db
2024-10-22 20:56:31 +02:00

21 lines
489 B
C++

/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <android_view_KeyEvent.h>
#include <input/Input.h>
namespace android {
jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent& event) {
return android_view_KeyEvent_obtainAsCopy(env, event).release();
}
KeyEvent android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj) {
return android_view_KeyEvent_obtainAsCopy(env, eventObj);
}
} // namespace android