Lines Matching refs:code
192 get_key_type(uint16_t code)
194 switch (code) {
211 if (code >= KEY_ESC && code <= KEY_MICMUTE)
213 if (code >= BTN_MISC && code <= BTN_GEAR_UP)
215 if (code >= KEY_OK && code <= KEY_LIGHTS_TOGGLE)
217 if (code >= BTN_DPAD_UP && code <= BTN_DPAD_RIGHT)
219 if (code >= KEY_ALS_TOGGLE && code < BTN_TRIGGER_HAPPY)
221 if (code >= BTN_TRIGGER_HAPPY && code <= BTN_TRIGGER_HAPPY40)
227 hw_set_key_down(struct fallback_dispatch *dispatch, int code, int pressed)
229 long_set_bit_state(dispatch->hw_key_mask, code, pressed);
233 hw_key_has_changed(struct fallback_dispatch *dispatch, int code)
235 return long_bit_is_set(dispatch->hw_key_mask, code) !=
236 long_bit_is_set(dispatch->last_hw_key_mask, code);
252 hw_is_key_down(struct fallback_dispatch *dispatch, int code)
254 return long_bit_is_set(dispatch->hw_key_mask, code);
258 get_key_down_count(struct evdev_device *device, int code)
260 return device->key_count[code];