Lines Matching defs:state
55 const struct button_state *state = &tablet->button_state,
59 buttons->bits[i] = state->bits[i] & ~(prev_state->bits[i]);
67 const struct button_state *state = &tablet->button_state,
72 ~(state->bits[i]);
75 /* Merge the previous state with the current one so all buttons look like
80 struct button_state *state = &tablet->button_state,
84 for (i = 0; i < sizeof(state->bits); i++) {
85 state->bits[i] = state->bits[i] | prev_state->bits[i];
119 * Return a previous axis state, where index of 0 means "most recent", 1 is
1204 enum libinput_button_state state)
1226 state);
1235 enum libinput_button_state state)
1239 if (state == LIBINPUT_BUTTON_STATE_PRESSED)
1249 state);
1773 * current state and skip over updating the axes.
1839 int state;
1843 * our tool state is zero - i.e. we got a valid prox out from the
1856 * BTN_TOOL_PEN and the state for the tool was 0, this device will
1902 * We set the current tool state to zero, thus setting
1904 * up, we change the tool state to be the new one we just got.
1914 state = !!(tablet->tool_state & bit(type));
1916 tablet_update_tool(tablet, device, type, state);
1921 if (state) {
2069 /* Update state */
2299 int code, state;
2311 &state) && state) {
2321 tablet_update_tool(tablet, device, tool, state);
2355 * state, hence the want_rotate.