Lines Matching refs:newMetaState
190 int32_t newMetaState; in setEphemeralMetaState() local
192 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
194 newMetaState = oldMetaState & in setEphemeralMetaState()
198 return normalizeMetaState(newMetaState); in setEphemeralMetaState()
202 int32_t newMetaState = oldMetaState; in normalizeMetaState() local
203 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()
204 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()
207 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()
208 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()
211 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()
212 newMetaState |= AMETA_CTRL_ON; in normalizeMetaState()
215 if (newMetaState & (AMETA_META_LEFT_ON | AMETA_META_RIGHT_ON)) { in normalizeMetaState()
216 newMetaState |= AMETA_META_ON; in normalizeMetaState()
218 return newMetaState; in normalizeMetaState()