mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 14:49:40 +00:00
fix typos
This commit is contained in:
committed by
Sam Lantinga
parent
2ed1c35ca6
commit
f361034ac3
@@ -403,7 +403,7 @@ typedef enum
|
||||
NSLog( @"CoreBluetooth BLE hardware is powered on and ready" );
|
||||
|
||||
// at startup, if we have no already attached peripherals, do a 20s scan for new unpaired devices,
|
||||
// otherwise callers should occaisionally do additional scans. we don't want to continuously be
|
||||
// otherwise callers should occasionally do additional scans. we don't want to continuously be
|
||||
// scanning because it drains battery, causes other nearby people to have a hard time pairing their
|
||||
// Steam Controllers, and may also trigger firmware weirdness when a device attempts to start
|
||||
// the pairing sequence multiple times concurrently
|
||||
@@ -750,7 +750,7 @@ static void process_pending_events(void)
|
||||
|
||||
- (void)peripheral:(CBPeripheral *)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
|
||||
{
|
||||
NSLog( @"didUpdateNotifcationStateForCharacteristic %@ (%@)", characteristic, error );
|
||||
NSLog( @"didUpdateNotificationStateForCharacteristic %@ (%@)", characteristic, error );
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -147,7 +147,7 @@ static void register_error_str(wchar_t **error_str, const char *msg)
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Semilar to register_error_str, but allows passing a format string with va_list args into this function. */
|
||||
/* Similar to register_error_str, but allows passing a format string with va_list args into this function. */
|
||||
static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
|
||||
{
|
||||
char msg[256];
|
||||
|
||||
@@ -1424,7 +1424,7 @@ void HID_API_EXPORT hid_close(hid_device *dev)
|
||||
|
||||
UPD: The crash part was true in/until some version of macOS.
|
||||
Starting with macOS 10.15, there is an opposite effect in some environments:
|
||||
crash happenes if IOHIDDeviceClose() is not called.
|
||||
crash happens if IOHIDDeviceClose() is not called.
|
||||
Not leaking a resource in all tested environments.
|
||||
*/
|
||||
if (is_macos_10_10_or_greater || !dev->disconnected) {
|
||||
|
||||
@@ -96,7 +96,7 @@ static void register_error_str(wchar_t **error_str, const char *msg)
|
||||
*error_str = utf8_to_wchar_t(msg);
|
||||
}
|
||||
|
||||
/* Semilar to register_error_str, but allows passing a format string with va_list args into this function. */
|
||||
/* Similar to register_error_str, but allows passing a format string with va_list args into this function. */
|
||||
static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
|
||||
{
|
||||
char msg[256];
|
||||
|
||||
Reference in New Issue
Block a user