Lines Matching refs:down
180 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { in setEphemeralMetaState() argument
182 if (down) { in setEphemeralMetaState()
212 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
213 if (down) { 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()