Lines Matching refs:currentMetaState

387         int32_t currentMetaState = 0;  in getEvents()  local
388 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState); in getEvents()
389 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now); in getEvents()
390 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now); in getEvents()
391 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState); in getEvents()
571 int32_t* currentMetaState) { in addMetaKeys() argument
575 AKEYCODE_CAPS_LOCK, AMETA_CAPS_LOCK_ON, currentMetaState); in addMetaKeys()
577 AKEYCODE_NUM_LOCK, AMETA_NUM_LOCK_ON, currentMetaState); in addMetaKeys()
579 AKEYCODE_SCROLL_LOCK, AMETA_SCROLL_LOCK_ON, currentMetaState); in addMetaKeys()
584 AMETA_SHIFT_ON, currentMetaState); in addMetaKeys()
588 AMETA_ALT_ON, currentMetaState); in addMetaKeys()
592 AMETA_CTRL_ON, currentMetaState); in addMetaKeys()
596 AMETA_META_ON, currentMetaState); in addMetaKeys()
599 AKEYCODE_SYM, AMETA_SYM_ON, currentMetaState); in addMetaKeys()
601 AKEYCODE_FUNCTION, AMETA_FUNCTION_ON, currentMetaState); in addMetaKeys()
604 AKEYCODE_FUNCTION, AMETA_FUNCTION_ON, currentMetaState); in addMetaKeys()
606 AKEYCODE_SYM, AMETA_SYM_ON, currentMetaState); in addMetaKeys()
611 AMETA_META_ON, currentMetaState); in addMetaKeys()
615 AMETA_CTRL_ON, currentMetaState); in addMetaKeys()
619 AMETA_ALT_ON, currentMetaState); in addMetaKeys()
623 AMETA_SHIFT_ON, currentMetaState); in addMetaKeys()
626 AKEYCODE_SCROLL_LOCK, AMETA_SCROLL_LOCK_ON, currentMetaState); in addMetaKeys()
628 AKEYCODE_NUM_LOCK, AMETA_NUM_LOCK_ON, currentMetaState); in addMetaKeys()
630 AKEYCODE_CAPS_LOCK, AMETA_CAPS_LOCK_ON, currentMetaState); in addMetaKeys()
637 int32_t* currentMetaState) { in addSingleEphemeralMetaKey() argument
639 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); in addSingleEphemeralMetaKey()
640 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); in addSingleEphemeralMetaKey()
651 int32_t* currentMetaState) { in addDoubleEphemeralMetaKey() argument
654 leftKeyCode, leftKeyMetaState, currentMetaState); in addDoubleEphemeralMetaKey()
656 rightKeyCode, rightKeyMetaState, currentMetaState); in addDoubleEphemeralMetaKey()
660 leftKeyCode, eitherKeyMetaState, currentMetaState); in addDoubleEphemeralMetaKey()
667 int32_t* currentMetaState) { in addLockedMetaKey() argument
669 *currentMetaState = updateMetaState(keyCode, true, *currentMetaState); in addLockedMetaKey()
670 addKey(outEvents, deviceId, keyCode, *currentMetaState, true, time); in addLockedMetaKey()
671 *currentMetaState = updateMetaState(keyCode, false, *currentMetaState); in addLockedMetaKey()
672 addKey(outEvents, deviceId, keyCode, *currentMetaState, false, time); in addLockedMetaKey()