mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Fixed typos
This commit is contained in:
parent
cc4a5e2d48
commit
b18b771c33
@ -220,7 +220,7 @@ private :
|
|||||||
CFSetRef copyDevices(UInt32 page, UInt32 usage);
|
CFSetRef copyDevices(UInt32 page, UInt32 usage);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Converte a HID key usage to its corresponding virtual code
|
/// \brief Convert a HID key usage to its corresponding virtual code
|
||||||
///
|
///
|
||||||
/// See IOHIDUsageTables.h
|
/// See IOHIDUsageTables.h
|
||||||
///
|
///
|
||||||
|
@ -86,7 +86,7 @@ NSUInteger keepOnlyMaskFromData(NSUInteger data, NSUInteger mask);
|
|||||||
-(void)initModifiersState;
|
-(void)initModifiersState;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Converte the NSEvent mouse button type to SFML type.
|
/// Convert the NSEvent mouse button type to SFML type.
|
||||||
///
|
///
|
||||||
/// Returns ButtonCount if the button is unknown
|
/// Returns ButtonCount if the button is unknown
|
||||||
///
|
///
|
||||||
@ -184,7 +184,7 @@ NSUInteger keepOnlyMaskFromData(NSUInteger data, NSUInteger mask);
|
|||||||
NSRect r = [self convertRect:NSMakeRect(x, y, 1, 1) toView:self];
|
NSRect r = [self convertRect:NSMakeRect(x, y, 1, 1) toView:self];
|
||||||
r = [self convertRect:r toView:nil]; // nil means window
|
r = [self convertRect:r toView:nil]; // nil means window
|
||||||
|
|
||||||
// Converte it to screen coordinates
|
// Convert it to screen coordinates
|
||||||
r = [[self window] convertRectToScreen:r];
|
r = [[self window] convertRectToScreen:r];
|
||||||
|
|
||||||
// Flip screen coodinates to match CGDisplayMoveCursorToPoint referential.
|
// Flip screen coodinates to match CGDisplayMoveCursorToPoint referential.
|
||||||
@ -203,7 +203,7 @@ NSUInteger keepOnlyMaskFromData(NSUInteger data, NSUInteger mask);
|
|||||||
NSPoint p = [self convertPoint:NSMakePoint(x, y) toView:self];
|
NSPoint p = [self convertPoint:NSMakePoint(x, y) toView:self];
|
||||||
p = [self convertPoint:p toView:nil]; // nil means window
|
p = [self convertPoint:p toView:nil]; // nil means window
|
||||||
|
|
||||||
// Converte it to screen coordinates
|
// Convert it to screen coordinates
|
||||||
p = [[self window] convertBaseToScreen:p];
|
p = [[self window] convertBaseToScreen:p];
|
||||||
|
|
||||||
// Flip screen coodinates to match CGDisplayMoveCursorToPoint referential.
|
// Flip screen coodinates to match CGDisplayMoveCursorToPoint referential.
|
||||||
|
Loading…
Reference in New Issue
Block a user