CFMutableDictionaryRef pDictionary = IOServiceMatching(kIOHIDDeviceKey);
if(pDictionary == NULL)
{
- wxLogSysError( _T("IOServiceMatching(kIOHIDDeviceKey) failed") );
+ wxLogSysError( wxT("IOServiceMatching(kIOHIDDeviceKey) failed") );
return false;
}
if( IOServiceGetMatchingServices(m_pPort,
pDictionary, &pIterator) != kIOReturnSuccess )
{
- wxLogSysError(_T("No Matching HID Services"));
+ wxLogSysError(wxT("No Matching HID Services"));
return false;
}
kNilOptions
) != KERN_SUCCESS )
{
- wxLogDebug(_T("IORegistryEntryCreateCFProperties failed"));
+ wxLogDebug(wxT("IORegistryEntryCreateCFProperties failed"));
}
//
//open the HID interface...
if ( (*m_ppDevice)->open(m_ppDevice, 0) != S_OK )
- wxLogDebug(_T("HID device: open failed"));
+ {
+ wxLogDebug(wxT("HID device: open failed"));
+ }
//
//Now the hard part - in order to scan things we need "cookies"
CFMutableDictionaryRef pDictionary = IOServiceMatching(kIOHIDDeviceKey);
if(pDictionary == NULL)
{
- wxLogSysError( _T("IOServiceMatching(kIOHIDDeviceKey) failed") );
+ wxLogSysError( wxT("IOServiceMatching(kIOHIDDeviceKey) failed") );
return false;
}
if( IOServiceGetMatchingServices(pPort,
pDictionary, &pIterator) != kIOReturnSuccess )
{
- wxLogSysError(_T("No Matching HID Services"));
+ wxLogSysError(wxT("No Matching HID Services"));
return false;
}
//3rd Param flags (none yet)
AddCookie(Data, i);
if ( (*m_ppQueue)->addElement(m_ppQueue, m_pCookies[i], 0) != S_OK )
- wxLogDebug(_T("HID device: adding element failed"));
+ {
+ wxLogDebug(wxT("HID device: adding element failed"));
+ }
}
// ----------------------------------------------------------------------------
m_ppQueue = (*m_ppDevice)->allocQueue(m_ppDevice);
if ( !m_ppQueue )
{
- wxLogDebug(_T("HID device: allocQueue failed"));
+ wxLogDebug(wxT("HID device: allocQueue failed"));
return;
}
//Param 2, flags, none yet
if ( (*m_ppQueue)->create(m_ppQueue, 0, 512) != S_OK )
{
- wxLogDebug(_T("HID device: create failed"));
+ wxLogDebug(wxT("HID device: create failed"));
}
}
{
for(size_t i = 0; i < sm_keyboards.GetCount(); ++i)
delete (wxHIDKeyboard*) sm_keyboards[i];
- sm_keyboards.Clear();
+ sm_keyboards.Clear();
}
};