Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/
DInputReader.cpp3957 for (const VirtualKeyDefinition& virtualKeyDefinition : virtualKeyDefinitions) { in configureVirtualKeys() local
3960 virtualKey.scanCode = virtualKeyDefinition.scanCode; in configureVirtualKeys()
3975 int32_t halfWidth = virtualKeyDefinition.width / 2; in configureVirtualKeys()
3976 int32_t halfHeight = virtualKeyDefinition.height / 2; in configureVirtualKeys()
3978 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth) in configureVirtualKeys()
3980 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth) in configureVirtualKeys()
3982 virtualKey.hitTop = (virtualKeyDefinition.centerY - halfHeight) in configureVirtualKeys()
3984 virtualKey.hitBottom = (virtualKeyDefinition.centerY + halfHeight) in configureVirtualKeys()