• Home
  • Raw
  • Download

Lines Matching refs:axisInfo

1991 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) {  in getAbsoluteAxisInfo()  argument
1992 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo); in getAbsoluteAxisInfo()
7161 addMotionRange(axis.axisInfo.axis, axis, info); in populateDeviceInfo()
7163 if (axis.axisInfo.mode == AxisInfo::MODE_SPLIT) { in populateDeviceInfo()
7164 addMotionRange(axis.axisInfo.highAxis, axis, info); in populateDeviceInfo()
7204 const char* label = getAxisLabel(axis.axisInfo.axis); in dump()
7208 dump += StringPrintf(INDENT4 "%d", axis.axisInfo.axis); in dump()
7210 if (axis.axisInfo.mode == AxisInfo::MODE_SPLIT) { in dump()
7211 label = getAxisLabel(axis.axisInfo.highAxis); in dump()
7213 dump += StringPrintf(" / %s (split at %d)", label, axis.axisInfo.splitValue); in dump()
7215 dump += StringPrintf(" / %d (split at %d)", axis.axisInfo.highAxis, in dump()
7216 axis.axisInfo.splitValue); in dump()
7218 } else if (axis.axisInfo.mode == AxisInfo::MODE_INVERT) { in dump()
7250 AxisInfo axisInfo; in configure() local
7251 bool explicitlyMapped = !getEventHub()->mapAxis(getDeviceId(), abs, &axisInfo); in configure()
7254 axisInfo.mode = AxisInfo::MODE_NORMAL; in configure()
7255 axisInfo.axis = -1; in configure()
7259 int32_t rawFlat = axisInfo.flatOverride < 0 in configure()
7260 ? rawAxisInfo.flat : axisInfo.flatOverride; in configure()
7264 if (axisInfo.mode == AxisInfo::MODE_SPLIT) { in configure()
7265 float scale = 1.0f / (axisInfo.splitValue - rawAxisInfo.minValue); in configure()
7266 float highScale = 1.0f / (rawAxisInfo.maxValue - axisInfo.splitValue); in configure()
7267 axis.initialize(rawAxisInfo, axisInfo, explicitlyMapped, in configure()
7271 } else if (isCenteredAxis(axisInfo.axis)) { in configure()
7274 axis.initialize(rawAxisInfo, axisInfo, explicitlyMapped, in configure()
7280 axis.initialize(rawAxisInfo, axisInfo, explicitlyMapped, in configure()
7308 if (axis.axisInfo.axis < 0) { in configure()
7315 axis.axisInfo.axis = nextGenericAxisId; in configure()
7333 if (axis.axisInfo.axis == axisId in haveAxis()
7334 || (axis.axisInfo.mode == AxisInfo::MODE_SPLIT in haveAxis()
7335 && axis.axisInfo.highAxis == axisId)) { in haveAxis()
7391 switch (axis.axisInfo.mode) { in process()
7398 if (rawEvent->value < axis.axisInfo.splitValue) { in process()
7399 newValue = (axis.axisInfo.splitValue - rawEvent->value) in process()
7402 } else if (rawEvent->value > axis.axisInfo.splitValue) { in process()
7404 highNewValue = (rawEvent->value - axis.axisInfo.splitValue) in process()
7451 setPointerCoordsAxisValue(&pointerCoords, axis.axisInfo.axis, axis.currentValue); in sync()
7452 if (axis.axisInfo.mode == AxisInfo::MODE_SPLIT) { in sync()
7453 setPointerCoordsAxisValue(&pointerCoords, axis.axisInfo.highAxis, in sync()
7495 if (axis.axisInfo.mode == AxisInfo::MODE_SPLIT) { in filterAxes()