/dports/devel/allegro5/allegro5-5.2.7.0/src/macosx/ |
H A D | hidjoy-10.4.m | 129 for (i=0; i<joy->parent.info.num_buttons; ++i) { 182 int num_buttons = 0; 188 joy->parent.info.num_buttons = 0; 207 if (usage_page == kHIDPage_Button && num_buttons < _AL_MAX_JOYSTICK_BUTTONS) { 208 …joy->button_link[num_buttons].cookie = (IOHIDElementCookie) [((NSNumber*) [element objectForKey: (… 209 joy->button_link[num_buttons].ppressed = &joy->state.button[num_buttons]; 213 name = [NSString stringWithFormat:@"Button %d", (num_buttons+1)]; 217 err = (*queue)->addElement(queue, joy->button_link[num_buttons].cookie, 0); 221 joy->parent.info.button[num_buttons].name = strdup([name UTF8String]); 222 ++num_buttons; [all …]
|
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/src/ |
H A D | fg_joystick.c | 161 int *num_axes, int *num_buttons) in fghJoystickInitializeHID() argument 258 if( interesting_hid && usage - 1 > *num_buttons ) in fghJoystickInitializeHID() 259 *num_buttons = usage - 1; in fghJoystickInitializeHID() 559 for ( i = 0; i < joy->num_buttons; i++ ) 669 joy->num_buttons = ISP_NUM_NEEDS - ISP_NUM_AXIS; 684 joy->num_buttons = joy->num_axes = 0; 713 for ( i = 0; i < joy->num_buttons; i++ ) 800 fgJoystick[ ident ]->num_buttons = 0; 857 joy->num_axes = joy->num_buttons = 0; 879 fgJoystick[ ident ]->num_axes = fgJoystick[ ident ]->num_buttons = 0; [all …]
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/interface/ |
H A D | interface_align.c | 389 int num_buttons = 0; in ui_block_align_calc() local 411 num_buttons++; in ui_block_align_calc() 415 if (num_buttons < 2) { in ui_block_align_calc() 424 if (num_buttons <= ARRAY_SIZE(butal_array_buf)) { in ui_block_align_calc() 428 butal_array = MEM_mallocN(sizeof(*butal_array) * num_buttons, __func__); in ui_block_align_calc() 430 memset(butal_array, 0, sizeof(*butal_array) * (size_t)num_buttons); in ui_block_align_calc() 449 qsort(butal_array, (size_t)num_buttons, sizeof(*butal_array), ui_block_align_butal_cmp); in ui_block_align_calc() 455 for (i = 0, butal = butal_array; i < num_buttons; i++, butal++) { in ui_block_align_calc() 459 for (j = i + 1, butal_other = &butal_array[i + 1]; j < num_buttons; j++, butal_other++) { in ui_block_align_calc() 484 for (i = 0; i < num_buttons; i++) { in ui_block_align_calc()
|
/dports/x11/libwacom/libwacom-1.5/tools/ |
H A D | show-svg-image.c | 64 int num_buttons; member 168 for (button = 'A'; button < 'A' + tablet->num_buttons; button++) { in print_button_labels() 245 for (button = 'A'; button < 'A' + tablet->num_buttons; button++) { in update_tablet() 326 int num_buttons; in on_timer_cb() local 329 num_buttons = libwacom_get_num_buttons (tablet->device); in on_timer_cb() 330 if (tablet->active_button >= 'A' + num_buttons) in on_timer_cb() 411 tablet->num_buttons = libwacom_get_num_buttons (device); in main()
|
/dports/games/flightgear/flightgear-2020.3.11/3rdparty/joystick/ |
H A D | jsBSD.cxx | 141 int *num_axes, int *num_buttons) in joy_initialize_hid() argument 235 if (interesting_hid && usage - 1 > *num_buttons) in joy_initialize_hid() 237 *num_buttons = usage - 1; in joy_initialize_hid() 276 num_buttons = 0; in open() 280 num_buttons = 32 ; in open() 322 if ( !joy_initialize_hid(os, &num_axes, &num_buttons ) ) in open()
|
H A D | jsNone.cxx | 40 num_axes = num_buttons = 0 ; in open() 53 num_axes = num_buttons = 0 ; in jsJoystick()
|
/dports/x11-toolkits/plib/plib-1.8.5/src/js/ |
H A D | jsBSD.cxx | 132 int *num_axes, int *num_buttons) in joy_initialize_hid() argument 227 if (interesting_hid && usage - 1 > *num_buttons) in joy_initialize_hid() 229 *num_buttons = usage - 1; in joy_initialize_hid() 268 num_buttons = 0; in open() 272 num_buttons = 32 ; in open() 314 if ( !joy_initialize_hid(os, &num_axes, &num_buttons ) ) in open()
|
H A D | jsNone.cxx | 33 num_axes = num_buttons = 0 ; in open() 46 num_axes = num_buttons = 0 ; in jsJoystick()
|
H A D | jsMacOS.cxx | 125 num_buttons = isp_num_needs - isp_num_axis ; in open() 142 num_buttons = num_axes = 0 ; in open() 187 for ( i = 0 ; i < num_buttons ; i++ ) in rawRead()
|
/dports/games/lwjgl/lwjgl-2df01dd/src/java/org/lwjgl/opengl/ |
H A D | WindowsMouse.java | 96 int num_buttons = mouse_button_count; in poll() local 98 if (num_buttons > button_states.length) in poll() 99 num_buttons = button_states.length; in poll() 100 for (int j = 0; j < num_buttons; j++) { in poll()
|
/dports/x11/libwacom/libwacom-1.5/libwacom/ |
H A D | libwacom.c | 344 d->num_buttons = device->num_buttons; in libwacom_copy() 436 if (a->num_buttons != b->num_buttons) in libwacom_compare() 1034 return device->num_buttons; in libwacom_get_num_buttons() 1103 g_return_val_if_fail (device->num_buttons > 0, -1); in libwacom_get_button_led_group() 1105 g_return_val_if_fail (button < 'A' + device->num_buttons, -1); in libwacom_get_button_led_group() 1168 g_return_val_if_fail (device->num_buttons > 0, WACOM_BUTTON_NONE); in libwacom_get_button_flag() 1170 g_return_val_if_fail (button < 'A' + device->num_buttons, WACOM_BUTTON_NONE); in libwacom_get_button_flag() 1182 g_return_val_if_fail (device->num_buttons > 0, 0); in libwacom_get_button_evdev_code() 1184 g_return_val_if_fail (button < 'A' + device->num_buttons, 0); in libwacom_get_button_evdev_code() 1220 if (stylus->num_buttons == -1) { in libwacom_stylus_get_num_buttons() [all …]
|
/dports/games/julius/julius-1.7.0/src/graphics/ |
H A D | arrow_button.h | 19 void arrow_buttons_draw(int x, int y, arrow_button *buttons, int num_buttons); 22 const mouse *m, int x, int y, arrow_button *buttons, int num_buttons, int *focus_button_id);
|
H A D | image_button.h | 34 void image_buttons_draw(int x, int y, image_button *buttons, int num_buttons); 37 const mouse *m, int x, int y, image_button *buttons, int num_buttons, int *focus_button_id);
|
/dports/games/augustus/augustus-3.1.0/src/graphics/ |
H A D | arrow_button.h | 21 void arrow_buttons_draw(int x, int y, arrow_button *buttons, int num_buttons); 24 const mouse *m, int x, int y, arrow_button *buttons, int num_buttons, int *focus_button_id);
|
H A D | generic_button.h | 18 …andle_mouse(const mouse *m, int x, int y, generic_button *buttons, int num_buttons, int *focus_but… 19 …andle_mouse(const mouse* m, int x, int y, generic_button* buttons, int num_buttons, int* focus_but…
|
H A D | image_button.h | 37 void image_buttons_draw(int x, int y, image_button *buttons, int num_buttons); 40 const mouse *m, int x, int y, image_button *buttons, int num_buttons, int *focus_button_id);
|
/dports/emulators/mednafen/mednafen/src/drivers/ |
H A D | Joystick.h | 16 INLINE unsigned NumButtons(void) { return num_buttons; } in NumButtons() 32 …void Calc09xID(unsigned num_axes, unsigned num_balls, unsigned num_hats, unsigned num_buttons) MDF… 40 unsigned num_buttons; variable
|
/dports/games/dxx-rebirth/dxx-rebirth_20211220-src/common/ui/ |
H A D | menu.cpp | 48 num_buttons(NumButtons) in menu() 53 const int num_buttons; member 59 for (int i=0; i < num_buttons; i++ ) in callback_handler()
|
/dports/devel/emscripten/emscripten-2.0.3/tests/third_party/box2d/freeglut/ |
H A D | freeglut_joystick.c | 256 int *num_axes, int *num_buttons) in fghJoystickInitializeHID() argument 362 *num_buttons = usage - 1; in fghJoystickInitializeHID() 429 int num_buttons; member 1096 joy->num_axes = joy->num_buttons = 0; 1196 joy->num_buttons = joy->num_axes = 0; 1331 joy->num_buttons = 0; 1342 joy->num_buttons = 32; 1421 joy->num_buttons = 32; 1446 joy->num_buttons = u; 1520 fgJoystick[ ident ]->num_buttons = 0; [all …]
|
/dports/graphics/freeglut/freeglut-3.2.1/src/ |
H A D | fg_joystick.c | 302 joy->pJoystick.buttonCookies[num_buttons++] = (IOHIDElementCookie) cookie; 326 for ( i = 0; i < joy->num_buttons; i++ ) 436 joy->num_buttons = ISP_NUM_NEEDS - ISP_NUM_AXIS; 451 joy->num_buttons = joy->num_axes = 0; 480 for ( i = 0; i < joy->num_buttons; i++ ) 567 fgJoystick[ ident ]->num_buttons = 0; 624 joy->num_axes = joy->num_buttons = 0; 646 fgJoystick[ ident ]->num_axes = fgJoystick[ ident ]->num_buttons = 0; 759 return fgJoystick[ ident ]->num_buttons;
|
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/java.desktop/unix/native/libawt_xawt/xawt/ |
H A D | XToolkit.c | 55 static int32_t num_buttons = 0; variable 832 if (num_buttons == 0) { in Java_sun_awt_X11_XToolkit_getNumberOfButtonsImpl() 833 num_buttons = getNumButtons(); in Java_sun_awt_X11_XToolkit_getNumberOfButtonsImpl() 835 return num_buttons; in Java_sun_awt_X11_XToolkit_getNumberOfButtonsImpl() 866 local_num_buttons = bInfo->num_buttons; in getNumButtons() 867 DTRACE_PRINTLN1("RobotPeer: XPointer has %d buttons", num_buttons); in getNumButtons() 879 local_num_buttons = bInfo->num_buttons; in getNumButtons() 880 DTRACE_PRINTLN1("RobotPeer: XPointer has %d buttons", num_buttons); in getNumButtons() 892 …ACE_PRINTLN1("RobotPeer: XINPUT extension is unavailable, assuming %d mouse buttons", num_buttons); in getNumButtons()
|
/dports/devel/allegro/allegro-4.4.3.1/src/beos/ |
H A D | bjoyapi.cpp | 27 static int32 num_devices, num_axes, num_hats, num_buttons; variable 84 num_buttons = be_joy->CountButtons(); in be_joy_init() 128 joy[i].num_buttons = num_buttons; in be_joy_init() 130 for (j = 0; j < num_buttons; j++) in be_joy_init() 266 for (j = 0; j < num_buttons; j++) { in be_joy_poll()
|
/dports/devel/py-game/pygame-2.1.0/src_c/ |
H A D | mouse.c | 132 int num_buttons = 3; in mouse_get_pressed() local 140 &num_buttons)) in mouse_get_pressed() 144 if (num_buttons != 3 && num_buttons != 5) in mouse_get_pressed() 148 if (!(tuple = PyTuple_New(num_buttons))) in mouse_get_pressed() 155 if (num_buttons == 5) { in mouse_get_pressed()
|
/dports/x11-drivers/xf86-input-evdev/xf86-input-evdev-2.10.6/src/ |
H A D | emuWheel.c | 223 if (up_button > pEvdev->num_buttons) pEvdev->num_buttons = up_button; in EvdevWheelEmuHandleButtonMap() 224 if (down_button > pEvdev->num_buttons) pEvdev->num_buttons = down_button; in EvdevWheelEmuHandleButtonMap() 301 if (5 > pEvdev->num_buttons) in EvdevWheelEmuPreInit() 302 pEvdev->num_buttons = 5; in EvdevWheelEmuPreInit()
|
/dports/x11-toolkits/wlroots/wlroots-0.12.0/types/tablet_v2/ |
H A D | wlr_tablet_v2_tool.c | 266 for (; i < tool->num_buttons; ++i) { in tablet_tool_button_update() 281 if (tool->num_buttons < WLR_TABLET_V2_TOOL_BUTTONS_CAP) { in tablet_tool_button_update() 282 i = tool->num_buttons++; in tablet_tool_button_update() 297 tool->num_buttons = push_zeroes_to_end(tool->pressed_buttons, WLR_TABLET_V2_TOOL_BUTTONS_CAP); in tablet_tool_button_update() 298 tool->num_buttons = push_zeroes_to_end(tool->pressed_serials, WLR_TABLET_V2_TOOL_BUTTONS_CAP); in tablet_tool_button_update() 301 assert(tool->num_buttons <= WLR_TABLET_V2_TOOL_BUTTONS_CAP); in tablet_tool_button_update() 386 for (size_t i = 0; i < tool->num_buttons; ++i) { in wlr_send_tablet_v2_tablet_tool_proximity_in() 413 for (size_t i = 0; i < tool->num_buttons; ++i) { in wlr_send_tablet_v2_tablet_tool_proximity_out() 741 if (grab->tool->is_down || grab->tool->num_buttons > 0 || state->released) { in check_and_release_implicit_grab() 832 if (!(tool->is_down || tool->num_buttons > 0)) { in wlr_tablet_tool_v2_start_implicit_grab()
|