Lines Matching refs:newMetaState
181 int32_t newMetaState; in setEphemeralMetaState() local
183 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
185 newMetaState = oldMetaState & in setEphemeralMetaState()
189 return normalizeMetaState(newMetaState); in setEphemeralMetaState()
193 int32_t newMetaState = oldMetaState; in normalizeMetaState() local
194 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()
195 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()
198 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()
199 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()
202 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()
203 newMetaState |= AMETA_CTRL_ON; in normalizeMetaState()
206 if (newMetaState & (AMETA_META_LEFT_ON | AMETA_META_RIGHT_ON)) { in normalizeMetaState()
207 newMetaState |= AMETA_META_ON; in normalizeMetaState()
209 return newMetaState; in normalizeMetaState()