Searched refs:sizeof_bit_array (Results 1 – 1 of 1) sorted by relevance
60 #define sizeof_bit_array(bits) (((bits) + 7) / 8) macro446 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getScanCodeState()464 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getKeyCodeState()486 uint8_t swState[sizeof_bit_array(SW_MAX + 1)]; in getSwitchState()1320 containsNonZeroByte(device->keyBitmask, 0, sizeof_bit_array(BTN_MISC)) || in openDeviceLocked()1321 containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_WHEEL), in openDeviceLocked()1322 sizeof_bit_array(KEY_MAX + 1)); in openDeviceLocked()1323 bool haveGamepadButtons = containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_MISC), in openDeviceLocked()1324 sizeof_bit_array(BTN_MOUSE)) || in openDeviceLocked()1325 containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_JOYSTICK), in openDeviceLocked()[all …]