///////////////////////////////////////////////////////
| 1057 | |
| 1058 | //////////////////////////////////////////////////////////// |
| 1059 | BOOL CALLBACK JoystickImpl::deviceEnumerationCallback(const DIDEVICEINSTANCE* deviceInstance, void*) |
| 1060 | { |
| 1061 | for (JoystickRecord& record : joystickList) |
| 1062 | { |
| 1063 | if (record.guid == deviceInstance->guidInstance) |
| 1064 | { |
| 1065 | record.plugged = true; |
| 1066 | |
| 1067 | return DIENUM_CONTINUE; |
| 1068 | } |
| 1069 | } |
| 1070 | |
| 1071 | const JoystickRecord record = {deviceInstance->guidInstance, sf::Joystick::Count, true}; |
| 1072 | joystickList.push_back(record); |
| 1073 | |
| 1074 | return DIENUM_CONTINUE; |
| 1075 | } |
| 1076 | |
| 1077 | |
| 1078 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no outgoing calls
no test coverage detected