Home
last modified time | relevance | path

Searched refs:mDeviceNode (Results 1 – 2 of 2) sorted by relevance

/hardware/libhardware/modules/input/evdev/
DInputDevice.cpp112 mHost(host), mDeviceNode(node), mDeviceDefinition(mHost->createDeviceDefinition()) { in EvdevDevice()
138 if (mDeviceNode->hasKey(BTN_MOUSE) in createMappers()
139 && mDeviceNode->hasRelativeAxis(REL_X) in createMappers()
140 && mDeviceNode->hasRelativeAxis(REL_Y)) { in createMappers()
146 bool haveGamepadButtons = mDeviceNode->hasKeyInRange(BTN_MISC, BTN_MOUSE) || in createMappers()
147 mDeviceNode->hasKeyInRange(BTN_JOYSTICK, BTN_DIGI); in createMappers()
151 if (mDeviceNode->hasAbsoluteAxis(ABS_MT_POSITION_X) in createMappers()
152 && mDeviceNode->hasAbsoluteAxis(ABS_MT_POSITION_Y)) { in createMappers()
156 if (mDeviceNode->hasKey(BTN_TOUCH) || !haveGamepadButtons) { in createMappers()
161 } else if (mDeviceNode->hasKey(BTN_TOUCH) in createMappers()
[all …]
DInputDevice.h69 std::shared_ptr<InputDeviceNode> mDeviceNode; variable