summaryrefslogtreecommitdiff
path: root/platform/android/os_android.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-08 10:05:39 +0200
committerGitHub <noreply@github.com>2019-10-08 10:05:39 +0200
commit98497ff71928daff6afb393b26e230e28bf18e3e (patch)
tree717b14d4fa32e718773521ad941e25bb63cb885a /platform/android/os_android.h
parent02d75f99b96e5d060b537863644c9b6679737b49 (diff)
parentdb582a2c8cc0bf7d237a973f17ad099fdf424859 (diff)
Merge pull request #21621 from AlexHolly/android-pen-hover-support
Adds Pen support for Android
Diffstat (limited to 'platform/android/os_android.h')
-rw-r--r--platform/android/os_android.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/os_android.h b/platform/android/os_android.h
index a17941f7c0..9bad9b2e01 100644
--- a/platform/android/os_android.h
+++ b/platform/android/os_android.h
@@ -70,6 +70,7 @@ public:
private:
Vector<TouchPos> touch;
+ Point2 hover_prev_pos; // needed to calculate the relative position on hover events
bool use_gl2;
bool use_apk_expansion;
@@ -186,6 +187,7 @@ public:
void process_magnetometer(const Vector3 &p_magnetometer);
void process_gyroscope(const Vector3 &p_gyroscope);
void process_touch(int p_what, int p_pointer, const Vector<TouchPos> &p_points);
+ void process_hover(int p_type, Point2 p_pos);
void process_joy_event(JoypadEvent p_event);
void process_event(Ref<InputEvent> p_event);
void init_video_mode(int p_video_width, int p_video_height);