Home
last modified time | relevance | path

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

/hardware/libhardware/modules/input/evdev/
DInputHub.cpp320 uint8_t keyState[sizeofBitArray(KEY_CNT)]; in getKeyState() local
321 memset(keyState, 0, sizeof(keyState)); in getKeyState()
322 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGKEY(sizeof(keyState)), keyState)) >= 0) { in getKeyState()
323 return testBit(key, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getKeyState()