Searched refs:button_count (Results 1 – 4 of 4) sorted by relevance
58 int axis_count, button_count; in draw_joystick() local87 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() local134 glfwGetJoystickButtons(joy, &button_count); in joystick_callback()140 button_count); in joystick_callback()
2252 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()
188 uint32_t button_count[KEY_CNT]; member
2446 + *(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];