If a new controller was added, returns a pointer to it.
| 673 | |
| 674 | // If a new controller was added, returns a pointer to it. |
| 675 | IJoystickConfig *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 | |
| 692 | void I_PutInClipboard (const char *str) |
| 693 | { |
no test coverage detected