summaryrefslogtreecommitdiffstats
path: root/ndk
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-03-21 13:54:04 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-03-21 13:57:12 +0100
commit9d0136004f4a117f6e113897b8579483b2850b49 (patch)
treea42dba937eb4729849fb44ba9efacad40eb79493 /ndk
parent7ba563216a352e430928dc970fb1018fcf6e5ecc (diff)
downloadandroid_development-9d0136004f4a117f6e113897b8579483b2850b49.tar.gz
android_development-9d0136004f4a117f6e113897b8579483b2850b49.tar.bz2
android_development-9d0136004f4a117f6e113897b8579483b2850b49.zip
Fix two incorrect <android/input.h> function declarations.
The <android/input.h> header file provided with the NDK contained two invalid function declarations. This patch fixes them. Note that this breaks the API, but fixes the ABI (which was previously broken). It is likely that any application developer that tried to use these function had problems with them anyway. Another patch to ndk.git will add a note to the changelog and to the documentation to explain the issue. + Fix some documentation typos. Change-Id: I0f4517458257ff3242127de9f9099f39948c0a56
Diffstat (limited to 'ndk')
-rw-r--r--ndk/platforms/android-9/include/android/input.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ndk/platforms/android-9/include/android/input.h b/ndk/platforms/android-9/include/android/input.h
index 7df13c34b..944957449 100644
--- a/ndk/platforms/android-9/include/android/input.h
+++ b/ndk/platforms/android-9/include/android/input.h
@@ -485,7 +485,7 @@ float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index);
/* Get the current pressure of this event for the given pointer index.
* The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure),
- * however values higher than 1 may be generated depending on the calibration of
+ * although values higher than 1 may be generated depending on the calibration of
* the input device. */
float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index);
@@ -545,7 +545,8 @@ int64_t AMotionEvent_getHistoricalEventTime(AInputEvent* motion_event,
* and views.
* Whole numbers are pixels; the value may have a fraction for input devices
* that are sub-pixel precise. */
-float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index);
+float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index,
+ size_t history_index);
/* Get the historical raw Y coordinate of this event for the given pointer index that
* occurred between this event and the previous motion event.
@@ -554,7 +555,8 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi
* and views.
* Whole numbers are pixels; the value may have a fraction for input devices
* that are sub-pixel precise. */
-float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index);
+float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index,
+ size_t history_index);
/* Get the historical X coordinate of this event for the given pointer index that
* occurred between this event and the previous motion event.
@@ -573,7 +575,7 @@ float AMotionEvent_getHistoricalY(AInputEvent* motion_event, size_t pointer_inde
/* Get the historical pressure of this event for the given pointer index that
* occurred between this event and the previous motion event.
* The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure),
- * however values higher than 1 may be generated depending on the calibration of
+ * although values higher than 1 may be generated depending on the calibration of
* the input device. */
float AMotionEvent_getHistoricalPressure(AInputEvent* motion_event, size_t pointer_index,
size_t history_index);