Home
last modified time | relevance | path

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

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