MCPcopy Create free account
hub / github.com/ZDoom/Raze / I_UpdateDeviceList

Function I_UpdateDeviceList

source/common/platform/win32/i_input.cpp:675–690  ·  view source on GitHub ↗

If a new controller was added, returns a pointer to it.

Source from the content-addressed store, hash-verified

673
674// If a new controller was added, returns a pointer to it.
675IJoystickConfig *I_UpdateDeviceList()
676{
677 IJoystickConfig *newone = NULL;
678 for (int i = 0; i < NUM_JOYDEVICES; ++i)
679 {
680 if (JoyDevices[i] != NULL)
681 {
682 IJoystickConfig *thisnewone = JoyDevices[i]->Rescan();
683 if (newone == NULL)
684 {
685 newone = thisnewone;
686 }
687 }
688 }
689 return newone;
690}
691
692void I_PutInClipboard (const char *str)
693{

Callers 1

D_ProcessEventsFunction · 0.50

Calls 1

RescanMethod · 0.45

Tested by

no test coverage detected