Lines Matching refs:currentMetaState
313 int32_t currentMetaState = 0; in getEvents() local
314 addMetaKeys(outEvents, deviceId, metaState, true, now, ¤tMetaState); in getEvents()
315 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now); in getEvents()
316 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now); in getEvents()
317 addMetaKeys(outEvents, deviceId, metaState, false, now, ¤tMetaState); in getEvents()
455 int32_t* currentMetaState) { in addMetaKeys() argument
459 AKEYCODE_CAPS_LOCK, AMETA_CAPS_LOCK_ON, currentMetaState); in addMetaKeys()
461 AKEYCODE_NUM_LOCK, AMETA_NUM_LOCK_ON, currentMetaState); in addMetaKeys()
463 AKEYCODE_SCROLL_LOCK, AMETA_SCROLL_LOCK_ON, currentMetaState); in addMetaKeys()
468 AMETA_SHIFT_ON, currentMetaState); in addMetaKeys()
472 AMETA_ALT_ON, currentMetaState); in addMetaKeys()
476 AMETA_CTRL_ON, currentMetaState); in addMetaKeys()
480 AMETA_META_ON, currentMetaState); in addMetaKeys()
483 AKEYCODE_SYM, AMETA_SYM_ON, currentMetaState); in addMetaKeys()
485 AKEYCODE_FUNCTION, AMETA_FUNCTION_ON, currentMetaState); in addMetaKeys()
488 AKEYCODE_FUNCTION, AMETA_FUNCTION_ON, currentMetaState); in addMetaKeys()
490 AKEYCODE_SYM, AMETA_SYM_ON, currentMetaState); in addMetaKeys()
495 AMETA_META_ON, currentMetaState); in addMetaKeys()
499 AMETA_CTRL_ON, currentMetaState); in addMetaKeys()
503 AMETA_ALT_ON, currentMetaState); in addMetaKeys()
507 AMETA_SHIFT_ON, currentMetaState); in addMetaKeys()
510 AKEYCODE_SCROLL_LOCK, AMETA_SCROLL_LOCK_ON, currentMetaState); in addMetaKeys()
512 AKEYCODE_NUM_LOCK, AMETA_NUM_LOCK_ON, currentMetaState); in addMetaKeys()
514 AKEYCODE_CAPS_LOCK, AMETA_CAPS_LOCK_ON, currentMetaState); in addMetaKeys()
521 int32_t* currentMetaState) { in addSingleEphemeralMetaKey() argument
523 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState); in addSingleEphemeralMetaKey()
524 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time); in addSingleEphemeralMetaKey()
535 int32_t* currentMetaState) { in addDoubleEphemeralMetaKey() argument
538 leftKeyCode, leftKeyMetaState, currentMetaState); in addDoubleEphemeralMetaKey()
540 rightKeyCode, rightKeyMetaState, currentMetaState); in addDoubleEphemeralMetaKey()
544 leftKeyCode, eitherKeyMetaState, currentMetaState); in addDoubleEphemeralMetaKey()
551 int32_t* currentMetaState) { in addLockedMetaKey() argument
553 *currentMetaState = updateMetaState(keyCode, true, *currentMetaState); in addLockedMetaKey()
554 addKey(outEvents, deviceId, keyCode, *currentMetaState, true, time); in addLockedMetaKey()
555 *currentMetaState = updateMetaState(keyCode, false, *currentMetaState); in addLockedMetaKey()
556 addKey(outEvents, deviceId, keyCode, *currentMetaState, false, time); in addLockedMetaKey()