Home
last modified time | relevance | path

Searched refs:pJoystick (Results 1 – 18 of 18) sorted by relevance

/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/src/x11/
H A Dfg_joystick_x11.c58 …int status = read ( joy->pJoystick.os->fd, &joy->pJoystick.os->ajs, sizeof(joy->pJoystick.os->ajs)… in fgPlatformJoystickRawRead()
65 … *buttons = ( joy->pJoystick.os->ajs.b1 ? 1 : 0 ) | ( joy->pJoystick.os->ajs.b2 ? 2 : 0 ); in fgPlatformJoystickRawRead()
77 …ile ( ( len = read ( joy->pJoystick.os->fd, joy->pJoystick.os->hid_data_buf, joy->pJoystick.os->hi… in fgPlatformJoystickRawRead()
135 status = read ( joy->pJoystick.fd, &joy->pJoystick.js, sizeof(struct js_event) ); in fgPlatformJoystickRawRead()
159 joy->pJoystick.tmp_buttons &= ~( 1 << joy->pJoystick.js.number ); in fgPlatformJoystickRawRead()
161 joy->pJoystick.tmp_buttons |= ( 1 << joy->pJoystick.js.number ); in fgPlatformJoystickRawRead()
167 … joy->pJoystick.tmp_axes[ joy->pJoystick.js.number ] = ( float )joy->pJoystick.js.value; in fgPlatformJoystickRawRead()
191 status = read( joy->pJoystick.fd, &joy->pJoystick.js, JS_RETURN ); in fgPlatformJoystickRawRead()
238 joy->pJoystick.os->fd = open( joy->pJoystick.os->fname, O_RDONLY | O_NONBLOCK); in fgPlatformJoystickOpen()
345 joy->pJoystick.tmp_buttons = 0; in fgPlatformJoystickOpen()
[all …]
/dports/graphics/freeglut/freeglut-3.2.1/src/x11/
H A Dfg_joystick_x11.c236 …int status = read ( joy->pJoystick.os->fd, &joy->pJoystick.os->ajs, sizeof(joy->pJoystick.os->ajs)… in fgPlatformJoystickRawRead()
243 … *buttons = ( joy->pJoystick.os->ajs.b1 ? 1 : 0 ) | ( joy->pJoystick.os->ajs.b2 ? 2 : 0 ); in fgPlatformJoystickRawRead()
255 …ile ( ( len = read ( joy->pJoystick.os->fd, joy->pJoystick.os->hid_data_buf, joy->pJoystick.os->hi… in fgPlatformJoystickRawRead()
313 status = read ( joy->pJoystick.fd, &joy->pJoystick.js, sizeof(struct js_event) ); in fgPlatformJoystickRawRead()
337 joy->pJoystick.tmp_buttons &= ~( 1 << joy->pJoystick.js.number ); in fgPlatformJoystickRawRead()
339 joy->pJoystick.tmp_buttons |= ( 1 << joy->pJoystick.js.number ); in fgPlatformJoystickRawRead()
345 … joy->pJoystick.tmp_axes[ joy->pJoystick.js.number ] = ( float )joy->pJoystick.js.value; in fgPlatformJoystickRawRead()
369 status = read( joy->pJoystick.fd, &joy->pJoystick.js, JS_RETURN ); in fgPlatformJoystickRawRead()
416 joy->pJoystick.os->fd = open( joy->pJoystick.os->fname, O_RDONLY | O_NONBLOCK); in fgPlatformJoystickOpen()
526 joy->pJoystick.fd = open( joy->pJoystick.fname, O_RDONLY ); in fgPlatformJoystickOpen()
[all …]
/dports/graphics/freeglut/freeglut-3.2.1/src/mswin/
H A Dfg_joystick_mswin.c44 status = joyGetPosEx( joy->pJoystick.js_id, &joy->pJoystick.js ); in fgPlatformJoystickRawRead()
53 *buttons = joy->pJoystick.js.dwButtons; in fgPlatformJoystickRawRead()
99 case 6: axes[5] = (float) joy->pJoystick.js.dwVpos; in fgPlatformJoystickRawRead()
100 case 5: axes[4] = (float) joy->pJoystick.js.dwUpos; in fgPlatformJoystickRawRead()
101 case 4: axes[3] = (float) joy->pJoystick.js.dwRpos; in fgPlatformJoystickRawRead()
102 case 3: axes[2] = (float) joy->pJoystick.js.dwZpos; in fgPlatformJoystickRawRead()
175 joy->pJoystick.js.dwFlags = JOY_RETURNALL; in fgPlatformJoystickOpen()
176 joy->pJoystick.js.dwSize = sizeof( joy->pJoystick.js ); in fgPlatformJoystickOpen()
178 memset( &joy->pJoystick.jsCaps, 0, sizeof( joy->pJoystick.jsCaps ) ); in fgPlatformJoystickOpen()
181 …( joyGetDevCaps( joy->pJoystick.js_id, &joy->pJoystick.jsCaps, sizeof( joy->pJoystick.jsCaps ) ) != in fgPlatformJoystickOpen()
[all …]
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/src/mswin/
H A Dfg_joystick_mswin.c44 status = joyGetPosEx( joy->pJoystick.js_id, &joy->pJoystick.js ); in fgPlatformJoystickRawRead()
53 *buttons = joy->pJoystick.js.dwButtons; in fgPlatformJoystickRawRead()
99 case 6: axes[5] = (float) joy->pJoystick.js.dwVpos; in fgPlatformJoystickRawRead()
100 case 5: axes[4] = (float) joy->pJoystick.js.dwUpos; in fgPlatformJoystickRawRead()
101 case 4: axes[3] = (float) joy->pJoystick.js.dwRpos; in fgPlatformJoystickRawRead()
102 case 3: axes[2] = (float) joy->pJoystick.js.dwZpos; in fgPlatformJoystickRawRead()
175 joy->pJoystick.js.dwFlags = JOY_RETURNALL; in fgPlatformJoystickOpen()
176 joy->pJoystick.js.dwSize = sizeof( joy->pJoystick.js ); in fgPlatformJoystickOpen()
178 memset( &joy->pJoystick.jsCaps, 0, sizeof( joy->pJoystick.jsCaps ) ); in fgPlatformJoystickOpen()
181 …( joyGetDevCaps( joy->pJoystick.js_id, &joy->pJoystick.jsCaps, sizeof( joy->pJoystick.jsCaps ) ) != in fgPlatformJoystickOpen()
[all …]
/dports/multimedia/kodi-addon-peripheral.joystick/peripheral.joystick-1.7.1-Matrix/src/storage/xml/
H A DJoystickFamiliesXml.cpp61 const TiXmlElement* pJoystick = pFamily->FirstChildElement(JOYSTICK_FAMILIES_XML_ELEM_JOYSTICK); in Deserialize() local
63 if (pJoystick == nullptr) in Deserialize()
69 if (!DeserializeJoysticks(pJoystick, family)) in Deserialize()
82 bool CJoystickFamiliesXml::DeserializeJoysticks(const TiXmlElement* pJoystick, std::set<std::string… in DeserializeJoysticks() argument
84 while (pJoystick != nullptr) in DeserializeJoysticks()
86 const char* joystickName = pJoystick->GetText(); in DeserializeJoysticks()
90 pJoystick = pJoystick->NextSiblingElement(JOYSTICK_FAMILIES_XML_ELEM_JOYSTICK); in DeserializeJoysticks()
H A DJoystickFamiliesXml.h24 static bool DeserializeJoysticks(const TiXmlElement* pJoystick, std::set<std::string>& family);
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/Windows/
H A DDinputDevice.cpp129 pJoystick = NULL; in DinputDevice()
155 if (FAILED(pJoystick->SetDataFormat(&c_dfDIJoystick2))) { in DinputDevice()
156 pJoystick->Release(); in DinputDevice()
157 pJoystick = NULL; in DinputDevice()
185 if (pJoystick) { in ~DinputDevice()
186 pJoystick->Release(); in ~DinputDevice()
187 pJoystick = NULL; in ~DinputDevice()
225 if (!pJoystick) return -1; in UpdateState()
229 if (FAILED(pJoystick->Poll())) { in UpdateState()
230 if(pJoystick->Acquire() == DIERR_INPUTLOST) in UpdateState()
[all …]
H A DDinputDevice.h60 LPDIRECTINPUTDEVICE8 pJoystick; variable
/dports/emulators/ppsspp/ppsspp-1.12.3/Windows/
H A DDinputDevice.cpp129 pJoystick = NULL; in DinputDevice()
155 if (FAILED(pJoystick->SetDataFormat(&c_dfDIJoystick2))) { in DinputDevice()
156 pJoystick->Release(); in DinputDevice()
157 pJoystick = NULL; in DinputDevice()
185 if (pJoystick) { in ~DinputDevice()
186 pJoystick->Release(); in ~DinputDevice()
187 pJoystick = NULL; in ~DinputDevice()
225 if (!pJoystick) return -1; in UpdateState()
229 if (FAILED(pJoystick->Poll())) { in UpdateState()
230 if(pJoystick->Acquire() == DIERR_INPUTLOST) in UpdateState()
[all …]
H A DDinputDevice.h60 LPDIRECTINPUTDEVICE8 pJoystick; variable
/dports/emulators/libretro-ppsspp/ppsspp-1.12.3/Windows/
H A DDinputDevice.cpp129 pJoystick = NULL; in DinputDevice()
155 if (FAILED(pJoystick->SetDataFormat(&c_dfDIJoystick2))) { in DinputDevice()
156 pJoystick->Release(); in DinputDevice()
157 pJoystick = NULL; in DinputDevice()
185 if (pJoystick) { in ~DinputDevice()
186 pJoystick->Release(); in ~DinputDevice()
187 pJoystick = NULL; in ~DinputDevice()
225 if (!pJoystick) return -1; in UpdateState()
229 if (FAILED(pJoystick->Poll())) { in UpdateState()
230 if(pJoystick->Acquire() == DIERR_INPUTLOST) in UpdateState()
[all …]
H A DDinputDevice.h60 LPDIRECTINPUTDEVICE8 pJoystick; variable
/dports/graphics/freeglut/freeglut-3.2.1/src/
H A Dfg_joystick.c278 joy->pJoystick.axisCookies[index] = (IOHIDElementCookie) cookie;
428 joy->pJoystick.isp_needs, joy->pJoystick.isp_elem,
432 err = ISpInit( ISP_NUM_NEEDS, joy->pJoystick.isp_needs, joy->pJoystick.isp_elem,
458 …snprintf( fgJoystick[ ident ]->pJoystick.fname, sizeof(fgJoystick[ ident ]->pJoystick.fname), "/de…
483 …(*(joy->pJoystick.hidDev))->getElementValue ( joy->pJoystick.hidDev, joy->pJoystick.buttonCookies[…
494 …(*(joy->pJoystick.hidDev))->getElementValue ( joy->pJoystick.hidDev, joy->pJoystick.axisCookies[i]…
533 &( LPVOID )joy->pJoystick.hidDev
540 if( joy->pJoystick.hidDev == NULL )
544 rv = ( *( joy->pJoystick.hidDev ) )->open( joy->pJoystick.hidDev, 0 );
609 ( *( fgJoystick[ ident ]->pJoystick.hidDev ) )->
[all …]
H A Dfg_internal.h948 SFG_PlatformJoystick pJoystick; member
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/src/
H A Dfg_joystick.c511 joy->pJoystick.axisCookies[index] = (IOHIDElementCookie) cookie;
661 joy->pJoystick.isp_needs, joy->pJoystick.isp_elem,
665 err = ISpInit( ISP_NUM_NEEDS, joy->pJoystick.isp_needs, joy->pJoystick.isp_elem,
691 …snprintf( fgJoystick[ ident ]->pJoystick.fname, sizeof(fgJoystick[ ident ]->pJoystick.fname), "/de…
716 …(*(joy->pJoystick.hidDev))->getElementValue ( joy->pJoystick.hidDev, joy->pJoystick.buttonCookies[…
727 …(*(joy->pJoystick.hidDev))->getElementValue ( joy->pJoystick.hidDev, joy->pJoystick.axisCookies[i]…
766 &( LPVOID )joy->pJoystick.hidDev
773 if( joy->pJoystick.hidDev == NULL )
777 rv = ( *( joy->pJoystick.hidDev ) )->open( joy->pJoystick.hidDev, 0 );
842 ( *( fgJoystick[ ident ]->pJoystick.hidDev ) )->
[all …]
H A Dfg_internal.h852 SFG_PlatformJoystick pJoystick; member
/dports/multimedia/kodi-addon-peripheral.joystick/peripheral.joystick-1.7.1-Matrix/src/api/directinput/
H A DJoystickInterfaceDirectInput.cpp100 LPDIRECTINPUTDEVICE8 pJoystick = NULL; in EnumJoysticksCallback() local
103 HRESULT hr = context->m_pDirectInput->CreateDevice(pdidInstance->guidInstance, &pJoystick, NULL); in EnumJoysticksCallback()
104 if (FAILED(hr) || pJoystick == NULL) in EnumJoysticksCallback()
114 hr = pJoystick->SetDataFormat(&c_dfDIJoystick2); in EnumJoysticksCallback()
126 hr = pJoystick->SetCooperativeLevel(context->m_hWnd, DISCL_NONEXCLUSIVE | DISCL_FOREGROUND); in EnumJoysticksCallback()
135 …context->AddScanResult(JoystickPtr(new CJoystickDirectInput(pdidInstance->guidInstance, pJoystick,… in EnumJoysticksCallback()
/dports/emulators/mesen/Mesen-0.9.8-4-g4c701ad6/Windows/
H A DDirectInputManager.cpp238 LPDIRECTINPUTDEVICE8 pJoystick = nullptr; in EnumJoysticksCallback() local
239 hr = _directInput->CreateDevice(pdidInstance->guidInstance, &pJoystick, nullptr); in EnumJoysticksCallback()
244 DirectInputData data{ pJoystick, state, state, false }; in EnumJoysticksCallback()