From cb1404e45639d20439d7700b06d57ca1a1aad1fa Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Sat, 15 Jan 2011 18:14:15 -0800 Subject: Add joystick support to framework. Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961 --- core/java/android/view/Window.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'core/java/android/view/Window.java') diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index 2f27935dd331..5cbaf2a69e9d 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -184,6 +184,18 @@ public abstract class Window { */ public boolean dispatchTrackballEvent(MotionEvent event); + /** + * Called to process generic motion events. At the very least your + * implementation must call + * {@link android.view.Window#superDispatchGenericMotionEvent} to do the + * standard processing. + * + * @param event The generic motion event. + * + * @return boolean Return true if this event was consumed. + */ + public boolean dispatchGenericMotionEvent(MotionEvent event); + /** * Called to process population of {@link AccessibilityEvent}s. * @@ -1062,6 +1074,14 @@ public abstract class Window { */ public abstract boolean superDispatchTrackballEvent(MotionEvent event); + /** + * Used by custom windows, such as Dialog, to pass the generic motion event + * further down the view hierarchy. Application developers should + * not need to implement or call this. + * + */ + public abstract boolean superDispatchGenericMotionEvent(MotionEvent event); + /** * Retrieve the top-level window decor view (containing the standard * window frame/decorations and the client's content inside of that), which -- cgit v1.2.3