summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-19 13:27:30 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-19 13:27:30 +0200
commitb3f180c03630333103d41db09c35be3becfeaec6 (patch)
tree63e67b169c0544795a398e2f4256e7fa2933903c
parenta91a0f286e178186057050b7c98ae68449855c76 (diff)
libjvm-android: make the hacky input scroll
-rw-r--r--src/libjvm-android.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libjvm-android.c b/src/libjvm-android.c
index e0ff8e7..b56eb3b 100644
--- a/src/libjvm-android.c
+++ b/src/libjvm-android.c
@@ -186,7 +186,8 @@ jfloat
android_view_MotionEvent_getY(JNIEnv *env, jobject object, va_list args)
{
assert(env && object);
- return 700;
+ static int y;
+ return y = (y + 8) % 768;
}
jint