/dports/games/julius/julius-1.7.0/src/graphics/ |
H A D | image_button.c | 10 static void fade_pressed_effect(image_button *buttons, int num_buttons) in fade_pressed_effect() argument 13 for (int i = 0; i < num_buttons; i++) { in fade_pressed_effect() 27 static void fade_pressed_effect_build(image_button *buttons, int num_buttons) in fade_pressed_effect_build() argument 29 for (int i = 0; i < num_buttons; i++) { in fade_pressed_effect_build() 37 void image_buttons_draw(int x, int y, image_button *buttons, int num_buttons) in image_buttons_draw() argument 39 fade_pressed_effect(buttons, num_buttons); in image_buttons_draw() 40 for (int i = 0; i < num_buttons; i++) { in image_buttons_draw() 68 const mouse *m, int x, int y, image_button *buttons, int num_buttons, int *focus_button_id) in image_buttons_handle_mouse() argument 70 fade_pressed_effect(buttons, num_buttons); in image_buttons_handle_mouse() 71 fade_pressed_effect_build(buttons, num_buttons); in image_buttons_handle_mouse() [all …]
|
H A D | arrow_button.c | 15 void arrow_buttons_draw(int x, int y, arrow_button *buttons, int num_buttons) in arrow_buttons_draw() argument 17 for (int i = 0; i < num_buttons; i++) { in arrow_buttons_draw() 26 static int get_button(const mouse *m, int x, int y, arrow_button *buttons, int num_buttons) in get_button() argument 28 for (int i = 0; i < num_buttons; i++) { in get_button() 40 const mouse *m, int x, int y, arrow_button *buttons, int num_buttons, int *focus_button_id) in arrow_buttons_handle_mouse() argument 50 for (int i = 0; i < num_buttons; i++) { in arrow_buttons_handle_mouse() 61 int button_id = get_button(m, x, y, buttons, num_buttons); in arrow_buttons_handle_mouse()
|
H A D | generic_button.c | 3 static int get_button(const mouse *m, int x, int y, generic_button *buttons, int num_buttons) in get_button() argument 5 for (int i = 0; i < num_buttons; i++) { in get_button() 17 const mouse *m, int x, int y, generic_button *buttons, int num_buttons, int *focus_button_id) in generic_buttons_handle_mouse() argument 19 int button_id = get_button(m, x, y, buttons, num_buttons); in generic_buttons_handle_mouse()
|
/dports/games/augustus/augustus-3.1.0/src/graphics/ |
H A D | image_button.c | 11 static void fade_pressed_effect(image_button *buttons, int num_buttons) in fade_pressed_effect() argument 14 for (int i = 0; i < num_buttons; i++) { in fade_pressed_effect() 28 static void fade_pressed_effect_build(image_button *buttons, int num_buttons) in fade_pressed_effect_build() argument 30 for (int i = 0; i < num_buttons; i++) { in fade_pressed_effect_build() 38 void image_buttons_draw(int x, int y, image_button *buttons, int num_buttons) in image_buttons_draw() argument 40 fade_pressed_effect(buttons, num_buttons); in image_buttons_draw() 41 for (int i = 0; i < num_buttons; i++) { in image_buttons_draw() 84 const mouse *m, int x, int y, image_button *buttons, int num_buttons, int *focus_button_id) in image_buttons_handle_mouse() argument 86 fade_pressed_effect(buttons, num_buttons); in image_buttons_handle_mouse() 87 fade_pressed_effect_build(buttons, num_buttons); in image_buttons_handle_mouse() [all …]
|
H A D | generic_button.c | 3 static int get_button(const mouse *m, int x, int y, generic_button *buttons, int num_buttons) in get_button() argument 5 for (int i = 0; i < num_buttons; i++) { in get_button() 16 static int get_button_min(const mouse* m, int x, int y, generic_button* buttons, int num_buttons, i… in get_button_min() argument 18 for (int i = minimum_button; i < num_buttons; i++) { in get_button_min() 29 …andle_mouse(const mouse *m, int x, int y, generic_button *buttons, int num_buttons, int *focus_but… in generic_buttons_handle_mouse() argument 31 int button_id = get_button(m, x, y, buttons, num_buttons); in generic_buttons_handle_mouse() 50 …andle_mouse(const mouse* m, int x, int y, generic_button* buttons, int num_buttons, int* focus_but… in generic_buttons_min_handle_mouse() argument 52 int button_id = get_button_min(m, x, y, buttons, num_buttons,minimum_button); in generic_buttons_min_handle_mouse()
|
H A D | arrow_button.c | 14 void arrow_buttons_draw(int x, int y, arrow_button *buttons, int num_buttons) in arrow_buttons_draw() argument 16 for (int i = 0; i < num_buttons; i++) { in arrow_buttons_draw() 25 static int get_button(const mouse *m, int x, int y, arrow_button *buttons, int num_buttons) in get_button() argument 27 for (int i = 0; i < num_buttons; i++) { in get_button() 39 const mouse *m, int x, int y, arrow_button *buttons, int num_buttons, int *focus_button_id) in arrow_buttons_handle_mouse() argument 47 for (int i = 0; i < num_buttons; i++) { in arrow_buttons_handle_mouse() 58 int button_id = get_button(m, x, y, buttons, num_buttons); in arrow_buttons_handle_mouse()
|
/dports/games/jinput/jinput-bf22dd975bbba31f01895332255b63df376894e6/plugins/windows/src/main/java/net/java/games/input/ |
H A D | RawMouseInfo.java | 50 private final int num_buttons; field in RawMouseInfo 53 public RawMouseInfo(RawDevice device, int id, int num_buttons, int sample_rate) { in RawMouseInfo() argument 56 this.num_buttons = num_buttons; in RawMouseInfo() 73 if (num_buttons == 0) in createControllerFromDevice() 76 Component[] components = new Component[3 + num_buttons]; in createControllerFromDevice() 81 for (int i = 0; i < num_buttons; i++) { in createControllerFromDevice()
|
/dports/x11/wlogout/wlogout-1.1.1/ |
H A D | main.c | 36 static int num_buttons = 0; variable 366 num_buttons++; in get_buttons() 367 buttons[num_buttons - 1].yalign = 0.9; in get_buttons() 368 buttons[num_buttons - 1].xalign = 0.5; in get_buttons() 369 buttons[num_buttons - 1].circular = FALSE; in get_buttons() 401 strcpy(buttons[num_buttons - 1].text, buf); in get_buttons() 486 for (int i = 0; i < num_buttons; i++) in check_key() 511 if ((num_buttons % buttons_per_row) == 0) in load_buttons() 513 num_col = (num_buttons / buttons_per_row); in load_buttons() 517 num_col = (num_buttons / buttons_per_row) + 1; in load_buttons() [all …]
|
/dports/emulators/darcnes/darcnes/ |
H A D | ui_gtk.c | 426 if (ui_joypad && (ui_joypad->button_template->num_buttons > 4)) { in key_press() 432 if (ui_joypad && (ui_joypad->button_template->num_buttons > 5)) { in key_press() 438 if (ui_joypad && (ui_joypad->button_template->num_buttons > 6)) { in key_press() 444 if (ui_joypad && (ui_joypad->button_template->num_buttons > 7)) { in key_press() 450 if (ui_joypad && (ui_joypad->button_template->num_buttons > 0)) { in key_press() 456 if (ui_joypad && (ui_joypad->button_template->num_buttons > 1)) { in key_press() 462 if (ui_joypad && (ui_joypad->button_template->num_buttons > 2)) { in key_press() 468 if (ui_joypad && (ui_joypad->button_template->num_buttons > 3)) { in key_press() 482 if (ui_joypad && (ui_joypad->button_template->num_buttons > 4)) { in key_release() 488 if (ui_joypad && (ui_joypad->button_template->num_buttons > 5)) { in key_release() [all …]
|
/dports/games/tuxracer/tuxracer-0.61/src/ |
H A D | joystick.c | 29 static int num_buttons = 0; variable 63 num_buttons = SDL_JoystickNumButtons( joystick ); in init_joystick() 65 num_buttons, num_buttons == 1 ? "" : "s" ); in init_joystick() 145 if ( button >= num_buttons ) { in is_joystick_button_down() 151 button, num_buttons ); in is_joystick_button_down()
|
/dports/graphics/wings/wings-8d019ebe48/src/ |
H A D | wings_msg.erl | 45 Buttons = wings_pref:get_value(num_buttons), 50 Buttons = wings_pref:get_value(num_buttons), 61 Buttons = wings_pref:get_value(num_buttons), 93 case wings_pref:get_value(num_buttons) of 103 case wings_pref:get_value(num_buttons) of 120 case wings_pref:get_value(num_buttons) of 172 mmb_name(wings_pref:get_value(num_buttons)). 183 rmb_name(wings_pref:get_value(num_buttons)).
|
/dports/sysutils/cinnamon-control-center/cinnamon-control-center-4.8.2/panels/wacom/ |
H A D | cc-wacom-stylus-page.c | 463 int num_buttons; in cc_wacom_stylus_page_new() local 487 if (num_buttons == 0 && !has_eraser) in cc_wacom_stylus_page_new() 489 else if (num_buttons == 2 && has_eraser) in cc_wacom_stylus_page_new() 491 else if (num_buttons == 1 && has_eraser) in cc_wacom_stylus_page_new() 493 else if (num_buttons == 2 && !has_eraser) in cc_wacom_stylus_page_new() 495 else if (num_buttons == 3 && !has_eraser) in cc_wacom_stylus_page_new() 499 if (num_buttons == 0) in cc_wacom_stylus_page_new() 501 else if (num_buttons == 1) in cc_wacom_stylus_page_new() 514 if (num_buttons >= 3) in cc_wacom_stylus_page_new() 516 if (num_buttons >= 2) in cc_wacom_stylus_page_new() [all …]
|
/dports/x11/libwacom/libwacom-1.5/test/ |
H A D | test-tablet-validity.c | 49 int num_buttons; in buttons_have_direction() local 51 num_buttons = libwacom_get_num_buttons (device); in buttons_have_direction() 52 if (num_buttons == 0) in buttons_have_direction() 55 for (button = 'A'; button < 'A' + num_buttons; button++) { in buttons_have_direction() 71 int num_buttons; in match_mode_switch() local 75 num_buttons = libwacom_get_num_buttons (device); in match_mode_switch() 79 for (button = 'A'; button < 'A' + num_buttons; button++) { in match_mode_switch() 109 int num_buttons; in tablet_has_lr_buttons() local 112 num_buttons = libwacom_get_num_buttons (device); in tablet_has_lr_buttons() 114 for (button = 'A'; button < 'A' + num_buttons; button++) { in tablet_has_lr_buttons()
|
/dports/sysutils/gnome-control-center/gnome-control-center-41.2/panels/wacom/ |
H A D | cc-wacom-stylus-page.c | 423 guint num_buttons; in cc_wacom_stylus_page_new() local 444 if (num_buttons == 0 && !has_eraser) in cc_wacom_stylus_page_new() 446 else if (num_buttons == 2 && has_eraser) in cc_wacom_stylus_page_new() 448 else if (num_buttons == 1 && has_eraser) in cc_wacom_stylus_page_new() 450 else if (num_buttons == 2 && !has_eraser) in cc_wacom_stylus_page_new() 452 else if (num_buttons == 3 && !has_eraser) in cc_wacom_stylus_page_new() 456 remove_buttons (page, num_buttons); in cc_wacom_stylus_page_new() 463 num_buttons, has_eraser ? "with" : "without"); in cc_wacom_stylus_page_new() 468 if (num_buttons >= 3) in cc_wacom_stylus_page_new() 471 if (num_buttons >= 2) in cc_wacom_stylus_page_new() [all …]
|
/dports/devel/allegro/allegro-4.4.3.1/src/linux/ |
H A D | ljoy.c | 56 char num_axes, num_buttons; in joy_init() local 98 ioctl(joy_fd[i], JSIOCGBUTTONS, &num_buttons); in joy_init() 103 if (num_buttons > MAX_JOYSTICK_BUTTONS) in joy_init() 104 num_buttons = MAX_JOYSTICK_BUTTONS; in joy_init() 147 for (b = 0; b < num_buttons; b++) { in joy_init() 153 j->num_buttons = num_buttons; in joy_init() 175 for (j = 0; j < joy[i].num_buttons; j++) in joy_exit() 214 if (e[k].number < joy[i].num_buttons) in joy_poll()
|
/dports/games/julius/julius-1.7.0/src/window/ |
H A D | victory_dialog.c | 70 int num_buttons; in handle_input() local 72 num_buttons = 3; in handle_input() 74 num_buttons = 1; in handle_input() 76 …generic_buttons_handle_mouse(mouse_in_dialog(m), 48, 128, victory_buttons, num_buttons, &focus_but… in handle_input()
|
/dports/games/augustus/augustus-3.1.0/src/window/ |
H A D | victory_dialog.c | 77 int num_buttons; in handle_input() local 79 num_buttons = 3; in handle_input() 81 num_buttons = 1; in handle_input() 83 …generic_buttons_handle_mouse(mouse_in_dialog(m), 48, 128, victory_buttons, num_buttons, &focus_but… in handle_input()
|
/dports/devel/allegro5/allegro5-5.2.7.0/examples/ |
H A D | ex_joystick_events.c | 26 int num_buttons = 0; variable 39 num_buttons = 0; in setup_joystick_values() 54 num_buttons = al_get_joystick_num_buttons(joy); in setup_joystick_values() 55 if (num_buttons > MAX_BUTTONS) { in setup_joystick_values() 56 num_buttons = MAX_BUTTONS; in setup_joystick_values() 58 for (i = 0; i < num_buttons; i++) { in setup_joystick_values() 148 for (i = 0; i < num_buttons; i++) { in draw_all()
|
/dports/x11-drivers/xf86-input-joystick/xf86-input-joystick-1.6.3/src/ |
H A D | jstk_properties.c | 88 if ((*((INT8*)val->data)) != priv->num_buttons) in jstkSetProperty() 208 if (val->size != priv->num_buttons || val->format != 8 || val->type != XA_INTEGER) in jstkSetProperty() 314 &priv->num_buttons, in jstkInitProperties() 409 for (i=0;i<priv->num_buttons;i++) in jstkInitProperties() 413 PropModeReplace, priv->num_buttons, in jstkInitProperties() 419 for (i=0;i<priv->num_buttons;i++) { in jstkInitProperties() 427 PropModeReplace, priv->num_buttons, in jstkInitProperties() 434 for (i=0;i<priv->num_buttons;i++) in jstkInitProperties() 438 PropModeReplace, priv->num_buttons, button_floats, in jstkInitProperties() 444 for (i=0;i<priv->num_buttons;i++) in jstkInitProperties() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/hw/input/ |
H A D | stellaris_input.c | 24 int num_buttons; member 42 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_put_key() 70 num_buttons, 89 s->num_buttons = n; in stellaris_gamepad_init()
|
/dports/emulators/qemu/qemu-6.2.0/hw/input/ |
H A D | stellaris_input.c | 24 int num_buttons; member 42 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_put_key() 70 num_buttons, 89 s->num_buttons = n; in stellaris_gamepad_init()
|
/dports/emulators/qemu60/qemu-6.0.0/hw/input/ |
H A D | stellaris_input.c | 24 int num_buttons; member 42 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_put_key() 70 num_buttons, 89 s->num_buttons = n; in stellaris_gamepad_init()
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/hw/input/ |
H A D | stellaris_input.c | 22 int num_buttons; member 40 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_put_key() 67 VMSTATE_STRUCT_VARRAY_INT32(buttons, gamepad_state, num_buttons, 0, 85 s->num_buttons = n; in stellaris_gamepad_init()
|
/dports/emulators/qemu5/qemu-5.2.0/hw/input/ |
H A D | stellaris_input.c | 24 int num_buttons; member 42 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_put_key() 70 num_buttons, 89 s->num_buttons = n; in stellaris_gamepad_init()
|
/dports/emulators/qemu-utils/qemu-4.2.1/hw/input/ |
H A D | stellaris_input.c | 24 int num_buttons; member 42 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_put_key() 70 num_buttons, 89 s->num_buttons = n; in stellaris_gamepad_init()
|