Lines Matching refs:oldMetaState

170 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) {  in setEphemeralMetaState()  argument
173 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
175 newMetaState = oldMetaState & in setEphemeralMetaState()
182 int32_t normalizeMetaState(int32_t oldMetaState) { in normalizeMetaState() argument
183 int32_t newMetaState = oldMetaState; in normalizeMetaState()
202 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
204 return oldMetaState; in toggleLockedMetaState()
206 return oldMetaState ^ mask; in toggleLockedMetaState()
210 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument
213 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState()
215 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); in updateMetaState()
217 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); in updateMetaState()
219 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); in updateMetaState()
221 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaState); in updateMetaState()
223 return setEphemeralMetaState(AMETA_FUNCTION_ON, down, oldMetaState); in updateMetaState()
225 return setEphemeralMetaState(AMETA_CTRL_LEFT_ON, down, oldMetaState); in updateMetaState()
227 return setEphemeralMetaState(AMETA_CTRL_RIGHT_ON, down, oldMetaState); in updateMetaState()
229 return setEphemeralMetaState(AMETA_META_LEFT_ON, down, oldMetaState); in updateMetaState()
231 return setEphemeralMetaState(AMETA_META_RIGHT_ON, down, oldMetaState); in updateMetaState()
233 return toggleLockedMetaState(AMETA_CAPS_LOCK_ON, down, oldMetaState); in updateMetaState()
235 return toggleLockedMetaState(AMETA_NUM_LOCK_ON, down, oldMetaState); in updateMetaState()
237 return toggleLockedMetaState(AMETA_SCROLL_LOCK_ON, down, oldMetaState); in updateMetaState()
239 return oldMetaState; in updateMetaState()