Limit mouse boundary to one display viewport. Currently if desktop mode is enable, selects the topmost freeform display, or find first external display if there is no freeform display. Return the default display if desktop mode is not enable. - Add getPointerDisplayId to find the preferred display. - Limit update viewports from InputReader. Also implements updatePointerDisplay to find and associate with the specified display viewport. - Reload cursor resources if resolution or display changed. Bug: 113559891 Test: atest inputfliger_tests Test: ActivityView test app Change-Id: Ief3410a517be457dfe6f1180342bb1dc88833635
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
// Copyright (C) 2010 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
cc_library_shared {
|
|
name: "libinputservice",
|
|
cpp_std: "c++17",
|
|
srcs: [
|
|
"PointerController.cpp",
|
|
"SpriteController.cpp",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libcutils",
|
|
"liblog",
|
|
"libutils",
|
|
"libhwui",
|
|
"libgui",
|
|
"libui",
|
|
"libinput",
|
|
"libnativewindow",
|
|
],
|
|
|
|
header_libs: [
|
|
"libinputflinger_headers",
|
|
],
|
|
|
|
include_dirs: ["frameworks/native/services"],
|
|
|
|
cflags: [
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Werror",
|
|
],
|
|
|
|
}
|