Home
last modified time | relevance | path

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

/hardware/libhardware/modules/input/evdev/
DInputDevice.cpp96 mHost(host), mDeviceNode(node), mDeviceDefinition(mHost->createDeviceDefinition()) { in EvdevDevice()
122 if (mDeviceNode->hasKey(BTN_MOUSE) in createMappers()
123 && mDeviceNode->hasRelativeAxis(REL_X) in createMappers()
124 && mDeviceNode->hasRelativeAxis(REL_Y)) { in createMappers()
130 bool haveGamepadButtons = mDeviceNode->hasKeyInRange(BTN_MISC, BTN_MOUSE) || in createMappers()
131 mDeviceNode->hasKeyInRange(BTN_JOYSTICK, BTN_DIGI); in createMappers()
135 if (mDeviceNode->hasAbsoluteAxis(ABS_MT_POSITION_X) in createMappers()
136 && mDeviceNode->hasAbsoluteAxis(ABS_MT_POSITION_Y)) { in createMappers()
140 if (mDeviceNode->hasKey(BTN_TOUCH) || !haveGamepadButtons) { in createMappers()
145 } else if (mDeviceNode->hasKey(BTN_TOUCH) in createMappers()
[all …]
DInputDevice.h69 std::shared_ptr<InputDeviceNode> mDeviceNode; variable