• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/IOHIDFamily-503.215.2/IOHIDSystem/

Lines Matching defs:bit

419 	/* do mod bit update and char generation in useful order */
569 /* Get bit number */
580 /* Loop through each key assigned to this bit */
589 /* Set bit for modifier and which one */
626 /* Set char gen bit for this guy: not a no-op */
849 // Look up in the keymapping each key associated with the modifier bit.
851 // Return 1 if a key for modifier 'bit' is down. Return 0 if none is down
855 int bit )
862 if ( (mapping = parsedMapping->modDefs[bit]) != 0 ) {
873 void IOHIKeyboardMapper::calcModBit(int bit, kbdBitVector keyBits)
880 systemBitMask = 1<<(bit+16);
881 deviceBitMask = DeviceModifierMasks[bit];
883 if ((bit >= NX_MODIFIERKEY_RSHIFT) && (bit <= NX_MODIFIERKEY_RCOMMAND))
885 otherHandBit = bit - 8;
888 else if ((bit >= NX_MODIFIERKEY_SHIFT) && (bit <= NX_MODIFIERKEY_COMMAND))
890 otherHandBit = bit + 8;
893 /* Initially clear bit, as if key-up */
897 /* Set bit if any associated keys are down */
898 if ( IsModifierDown( &_parsedMapping, keyBits, bit ))
910 if ( bit == NX_MODIFIERKEY_ALPHALOCK ) {/* Caps Lock key */
913 else if ( bit == NX_MODIFIERKEY_NUMLOCK ) {/* Num Lock key */
1082 * bit set
1217 // we know we set this as a 32 bit number
1232 // if set, then set the bit in our state
1235 // otherwise clear the bit in our state
1271 // if set, then set the bit in our state
1277 // otherwise clear the bit in our state
1293 // if set, then set the bit in our state
1297 // otherwise clear the bit in our state
1313 // if set, then set the bit in our state
1316 // otherwise clear the bit in our state
1332 // if set, then set the bit in our state
1335 // otherwise clear the bit in our state
1351 // if set, then set the bit in our state
1354 // otherwise clear the bit in our state
2080 // only do so if the shift toggles bit is set
2081 // we could have a seperate bit to set whether option