Loading libs/input/android/os/IInputConstants.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -95,4 +95,7 @@ interface IInputConstants */ INTERCEPTS_STYLUS = 0x00000040, } /* The default pointer acceleration value. */ const int DEFAULT_POINTER_ACCELERATION = 3; } services/inputflinger/include/InputReaderBase.h +5 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #ifndef _UI_INPUT_READER_BASE_H #define _UI_INPUT_READER_BASE_H #include <android/os/IInputConstants.h> #include <input/DisplayViewport.h> #include <input/Input.h> #include <input/InputDevice.h> Loading Loading @@ -288,7 +289,10 @@ struct InputReaderConfiguration { InputReaderConfiguration() : virtualKeyQuietTime(0), pointerVelocityControlParameters(1.0f, 500.0f, 3000.0f, 3.0f), pointerVelocityControlParameters(1.0f, 500.0f, 3000.0f, static_cast<float>( android::os::IInputConstants:: DEFAULT_POINTER_ACCELERATION)), wheelVelocityControlParameters(1.0f, 15.0f, 50.0f, 4.0f), pointerGesturesEnabled(true), pointerGestureQuietInterval(100 * 1000000LL), // 100 ms Loading Loading
libs/input/android/os/IInputConstants.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -95,4 +95,7 @@ interface IInputConstants */ INTERCEPTS_STYLUS = 0x00000040, } /* The default pointer acceleration value. */ const int DEFAULT_POINTER_ACCELERATION = 3; }
services/inputflinger/include/InputReaderBase.h +5 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #ifndef _UI_INPUT_READER_BASE_H #define _UI_INPUT_READER_BASE_H #include <android/os/IInputConstants.h> #include <input/DisplayViewport.h> #include <input/Input.h> #include <input/InputDevice.h> Loading Loading @@ -288,7 +289,10 @@ struct InputReaderConfiguration { InputReaderConfiguration() : virtualKeyQuietTime(0), pointerVelocityControlParameters(1.0f, 500.0f, 3000.0f, 3.0f), pointerVelocityControlParameters(1.0f, 500.0f, 3000.0f, static_cast<float>( android::os::IInputConstants:: DEFAULT_POINTER_ACCELERATION)), wheelVelocityControlParameters(1.0f, 15.0f, 50.0f, 4.0f), pointerGesturesEnabled(true), pointerGestureQuietInterval(100 * 1000000LL), // 100 ms Loading