Lines Matching refs:down
170 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) {
172 if (down) {
197 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) {
198 if (down) {
205 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) {
209 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState);
211 return setEphemeralMetaState(AMETA_ALT_RIGHT_ON, down, oldMetaState);
213 return setEphemeralMetaState(AMETA_SHIFT_LEFT_ON, down, oldMetaState);
215 return setEphemeralMetaState(AMETA_SHIFT_RIGHT_ON, down, oldMetaState);
217 return setEphemeralMetaState(AMETA_SYM_ON, down, oldMetaState);
219 return setEphemeralMetaState(AMETA_FUNCTION_ON, down, oldMetaState);
221 return setEphemeralMetaState(AMETA_CTRL_LEFT_ON, down, oldMetaState);
223 return setEphemeralMetaState(AMETA_CTRL_RIGHT_ON, down, oldMetaState);
225 return setEphemeralMetaState(AMETA_META_LEFT_ON, down, oldMetaState);
227 return setEphemeralMetaState(AMETA_META_RIGHT_ON, down, oldMetaState);
229 return toggleLockedMetaState(AMETA_CAPS_LOCK_ON, down, oldMetaState);
231 return toggleLockedMetaState(AMETA_NUM_LOCK_ON, down, oldMetaState);
233 return toggleLockedMetaState(AMETA_SCROLL_LOCK_ON, down, oldMetaState);