Home
last modified time | relevance | path

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

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