| 707 | static hid_device_ref<CHIDDevice> g_Devices; |
| 708 | |
| 709 | static hid_device_ref<CHIDDevice> FindDevice( int nDeviceId ) |
| 710 | { |
| 711 | hid_device_ref<CHIDDevice> pDevice; |
| 712 | |
| 713 | hid_mutex_guard l( &g_DevicesMutex ); |
| 714 | for ( pDevice = g_Devices; pDevice; pDevice = pDevice->next ) |
| 715 | { |
| 716 | if ( pDevice->GetId() == nDeviceId ) |
| 717 | { |
| 718 | break; |
| 719 | } |
| 720 | } |
| 721 | return pDevice; |
| 722 | } |
| 723 | |
| 724 | static void ThreadDestroyed(void* value) |
| 725 | { |
no test coverage detected