• Home
  • Raw
  • Download

Lines Matching refs:oldMetaState

180 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) {  in setEphemeralMetaState()  argument
183 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
185 newMetaState = oldMetaState & in setEphemeralMetaState()
192 int32_t normalizeMetaState(int32_t oldMetaState) { in normalizeMetaState() argument
193 int32_t newMetaState = oldMetaState; in normalizeMetaState()
212 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
214 return oldMetaState; in toggleLockedMetaState()
216 return oldMetaState ^ mask; in toggleLockedMetaState()
220 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument
223 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState()
225 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState); in updateMetaState()
227 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState); in updateMetaState()
229 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState); in updateMetaState()
231 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaState); in updateMetaState()
233 return setEphemeralMetaState(AMETA_FUNCTION_ON, down, oldMetaState); in updateMetaState()
235 return setEphemeralMetaState(AMETA_CTRL_LEFT_ON, down, oldMetaState); in updateMetaState()
237 return setEphemeralMetaState(AMETA_CTRL_RIGHT_ON, down, oldMetaState); in updateMetaState()
239 return setEphemeralMetaState(AMETA_META_LEFT_ON, down, oldMetaState); in updateMetaState()
241 return setEphemeralMetaState(AMETA_META_RIGHT_ON, down, oldMetaState); in updateMetaState()
243 return toggleLockedMetaState(AMETA_CAPS_LOCK_ON, down, oldMetaState); in updateMetaState()
245 return toggleLockedMetaState(AMETA_NUM_LOCK_ON, down, oldMetaState); in updateMetaState()
247 return toggleLockedMetaState(AMETA_SCROLL_LOCK_ON, down, oldMetaState); in updateMetaState()
249 return oldMetaState; in updateMetaState()