353bf1f945
Replace deprecated /dev/keychord driver with /dev/input/ interface. Will restrict which nodes are active and relevant, and try to mask out any unreferenced inputs with EVIOCSMASK if available. Test: manual, boot, check registered chord works Bug: 64114943 Change-Id: I2bbf84a6e472d720f02282e10d56795b75ac62d1
30 lines
811 B
C++
30 lines
811 B
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef _INIT_KEYCHORDS_H_
|
|
#define _INIT_KEYCHORDS_H_
|
|
|
|
#include "service.h"
|
|
|
|
namespace android {
|
|
namespace init {
|
|
|
|
void KeychordInit();
|
|
|
|
} // namespace init
|
|
} // namespace android
|
|
|
|
#endif
|