Searched refs:keyState (Results 1 – 1 of 1) sorted by relevance
320 uint8_t keyState[sizeofBitArray(KEY_CNT)]; in getKeyState() local321 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()