Home
last modified time | relevance | path

Searched refs:button_count (Results 1 – 4 of 4) sorted by relevance

/third_party/glfw/tests/
Djoysticks.c58 int axis_count, button_count; in draw_joystick() local
87 buttons = glfwGetJoystickButtons(joysticks[index], &button_count); in draw_joystick()
88 if (button_count) in draw_joystick()
90 const int button_width = width / button_count; in draw_joystick()
92 for (i = 0; i < button_count; i++) in draw_joystick()
131 int axis_count, button_count; in joystick_callback() local
134 glfwGetJoystickButtons(joy, &button_count); in joystick_callback()
140 button_count); in joystick_callback()
/third_party/libinput/src/
Dlibinput.c2252 return ++seat->button_count[key]; in update_seat_key_count()
2255 if (seat->button_count[key] == 0) in update_seat_key_count()
2258 return --seat->button_count[key]; in update_seat_key_count()
2273 return ++seat->button_count[button]; in update_seat_button_count()
2276 if (seat->button_count[button] == 0) in update_seat_button_count()
2279 return --seat->button_count[button]; in update_seat_button_count()
Dlibinput-private.h188 uint32_t button_count[KEY_CNT]; member
/third_party/libinput/patch/diff_libinput_mmi/libinput/
Dlibinput_0000.diff2446 + *(seat_count) = ++seat->button_count[key];
2451 + if (seat->button_count[key] == 0)
2453 + *(seat_count) = seat->button_count[key];
2457 + *(seat_count) = --seat->button_count[key];