Lines Matching refs:state

367 test_button_event(struct litest_device *dev, unsigned int button, int state)
371 litest_button_click_debounced(dev, li, button, state);
375 state ? LIBINPUT_BUTTON_STATE_PRESSED :
1646 enum libinput_config_scroll_button_lock_state state;
1648 state = libinput_device_config_scroll_get_button_lock(dev->libinput_device);
1649 ck_assert_int_eq(state, LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED);
1650 state = libinput_device_config_scroll_get_default_button_lock(dev->libinput_device);
1651 ck_assert_int_eq(state, LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED);
1659 enum libinput_config_scroll_button_lock_state state;
1661 state = libinput_device_config_scroll_get_button_lock(dev->libinput_device);
1662 ck_assert_int_eq(state, LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED);
1663 state = libinput_device_config_scroll_get_default_button_lock(dev->libinput_device);
1664 ck_assert_int_eq(state, LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED);
1669 state = libinput_device_config_scroll_get_button_lock(dev->libinput_device);
1670 ck_assert_int_eq(state, LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED);
1676 state = libinput_device_config_scroll_get_button_lock(dev->libinput_device);
1677 ck_assert_int_eq(state, LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_ENABLED);
1881 /* We only enable once we go to a neutral state so this still counts
2807 enum libinput_config_middle_emulation_state state;
2816 state = libinput_device_config_middle_emulation_get_enabled(device);
2817 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2819 state = libinput_device_config_middle_emulation_get_default_enabled(
2821 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2841 enum libinput_config_middle_emulation_state state;
2847 state = libinput_device_config_middle_emulation_get_enabled(device);
2848 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2849 state = libinput_device_config_middle_emulation_get_default_enabled(
2851 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2870 enum libinput_config_middle_emulation_state state;
2884 state = libinput_device_config_middle_emulation_get_enabled(
2886 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2887 state = libinput_device_config_middle_emulation_get_default_enabled(
2889 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2897 enum libinput_config_middle_emulation_state state;
2903 state = libinput_device_config_middle_emulation_get_enabled(
2905 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED);
2906 state = libinput_device_config_middle_emulation_get_default_enabled(
2908 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED);
2916 enum libinput_config_middle_emulation_state state;
2922 state = libinput_device_config_middle_emulation_get_enabled(device);
2923 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);
2924 state = libinput_device_config_middle_emulation_get_default_enabled(
2926 ck_assert_int_eq(state, LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED);