Home
last modified time | relevance | path

Searched refs:num_hats (Results 1 – 25 of 25) sorted by relevance

/dports/emulators/joytran/joytran-0.9.5.2/src/
H A Ddetect_joysticks.c22 int num_hats = SDL_JoystickNumHats(joy); in detect_joysticks() local
24 active = (num_axes > 0 || num_hats > 0 || num_btns > 0) ? 1 : 0; in detect_joysticks()
28 i, num_axes, num_hats, num_btns); in detect_joysticks()
33 j, num_axes, num_hats, num_btns); in detect_joysticks()
H A Devent_loop.c25 int num_hats = SDL_JoystickNumHats(joys[i]); in event_loop() local
30 for (j = 0; j < num_hats; j = j + 2) { in event_loop()
/dports/games/flightgear/flightgear-2020.3.11/3rdparty/joystick/
H A DjsMacOSX.cxx55 int num_hats; member
169 os->num_hats = 0; in jsJoystick()
241 for (int h = 0; h<2*os->num_hats; h++) in open()
440 int index = /*joy->*/num_hats++; in addHatElement()
487 int real_num_axes = num_axes - 2*os->num_hats; in rawRead()
494 for (int h=0; h < os->num_hats; ++h) { in rawRead()
/dports/x11-toolkits/plib/plib-1.8.5/src/js/
H A DjsMacOSX.cxx55 int num_hats; member
150 os->num_hats = 0; in jsJoystick()
215 for (int h = 0; h<2*os->num_hats; h++) in open()
394 int index = /*joy->*/num_hats++; in addHatElement()
425 int real_num_axes = num_axes - 2*os->num_hats; in rawRead()
432 for (int h=0; h < os->num_hats; ++h) { in rawRead()
/dports/games/retroarch/RetroArch-1.9.7/input/drivers_joypad/
H A Dsdl_joypad.c39 unsigned num_hats; member
167 pad->num_hats = 0; in sdl_pad_connect()
176 pad->num_hats = SDL_JoystickNumHats(pad->joypad); in sdl_pad_connect()
210 pad->num_hats = SDL_JoystickNumHats(pad->joypad); in sdl_pad_connect()
324 if (hat >= pad->num_hats) in sdl_joypad_button_state()
/dports/devel/allegro/allegro-4.4.3.1/src/beos/
H A Dbjoyapi.cpp27 static int32 num_devices, num_axes, num_hats, num_buttons; variable
83 num_hats = be_joy->CountHats(); in be_joy_init()
118 for (j = 0; j < num_hats; j++) { in be_joy_init()
195 for (j = 0; j < num_hats; j++) { in be_joy_poll()
/dports/devel/allegro/allegro-4.4.3.1/src/dos/
H A Dgripjoy.c391 int num_hats = 0; in grip_init() local
396 num_hats = (_GrGetMaxIndex(slot_index[i], GRIP_CLASS_POV_HAT) + 1) / 2; in grip_init()
398 joy[i].num_sticks += num_hats; in grip_init()
400 num_hats -= joy[i].num_sticks - MAX_JOYSTICK_STICKS; in grip_init()
405 for (stick=pov_start; stick < pov_start+num_hats; stick++) { in grip_init()
410 if (num_hats > 1) { in grip_init()
/dports/emulators/jzintv/jzintv-20200712-src/src/joy/
H A Djoy.h55 int num_hats; /* Number of hats */ member
H A Djoy_sdl.c198 joy[jn].num_hats = SDL_JoystickNumHats (sj); in joy_init()
231 joy[jn].num_hats, joy[jn].num_buttons); in joy_init()
959 cpu->r[2] = joyp->num_hats; in joy_emu_link()
1026 for (i = 0; i < joyp->num_hats; i++) in joy_emu_link()
/dports/emulators/snes9x-gtk/snes9x-1.54.1/gtk/src/
H A Dgtk_control.h83 int num_hats; variable
H A Dgtk_control.cpp452 num_hats = SDL_JoystickNumHats (filedes); in JoyDevice()
454 hat = (int *) malloc (sizeof (int) * num_hats); in JoyDevice()
/dports/games/libretro-snes9x/snes9x-73aa348/gtk/src/
H A Dgtk_control.h112 int num_hats; variable
H A Dgtk_control.cpp570 num_hats = SDL_JoystickNumHats (filedes); in JoyDevice()
572 hat = new int[num_hats]; in JoyDevice()
587 num_hats); in JoyDevice()
/dports/emulators/fs-uae/fs-uae-3.1.35/src/fs-uae/
H A Ddevice-helper.c320 int num_hats = SDL_JoystickNumHats(joystick); in print_state() local
330 for (int i = 0; i < num_hats; i++) { in print_state()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/io/
H A Djoy.h319 uint32_t num_hats; member
H A Djoy-sdl.cpp900 info.num_hats = static_cast<uint32_t>(SDL_JoystickNumHats(joystick)); in getJoystickInformations()
/dports/emulators/mednafen/mednafen/src/drivers/
H A DJoystick.h32 …void Calc09xID(unsigned num_axes, unsigned num_balls, unsigned num_hats, unsigned num_buttons) MDF…
/dports/devel/p5-SDL/SDL-2.548/lib/pods/SDL/
H A DJoystick.pod105 =head2 num_hats section
107 int SDL::Joystick::num_hats( object );
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/sdl2-0.32.2/src/sdl2/
H A Djoystick.rs311 pub fn num_hats(&self) -> u32 { in num_hats() method
/dports/games/dose-response/dose-response-179c326/cargo-crates/sdl2-0.32.2/src/sdl2/
H A Djoystick.rs311 pub fn num_hats(&self) -> u32 { in num_hats() method
/dports/games/zangband/zangband/src/
H A Dzborg4.c105 int num_hats; variable
3388 num_hats = 0; in borg_notice_home_clear()
4172 num_hats += l_ptr->number; in borg_notice_home_item()
4919 if (num_hats > 4) in borg_power_home_aux1()
4920 value -= (num_hats - 4) * 1000L; in borg_power_home_aux1()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/cmdline/
H A Dcmdline.cpp1425 json_object_set_new(joystick_obj, "num_hats", json_integer(info.num_hats)); in json_get_v1()
/dports/lang/vala/vala-0.48.18/vapi/
H A Dsdl.vapi950 public int num_hats();
/dports/games/bzflag-server/bzflag-2.4.22/src/bzflag/
H A Dplaying.cxx7057 int num_hats = mainWindow->getNumHats(); in playingLoop() local
7058 if (num_hats > max_hats) num_hats = max_hats; // num_hats min= max_hats; in playingLoop()
7064 for (int hat = 0; hat < num_hats; hat++) in playingLoop()
/dports/games/bzflag/bzflag-2.4.22/src/bzflag/
H A Dplaying.cxx7057 int num_hats = mainWindow->getNumHats(); in playingLoop() local
7058 if (num_hats > max_hats) num_hats = max_hats; // num_hats min= max_hats; in playingLoop()
7064 for (int hat = 0; hat < num_hats; hat++) in playingLoop()