mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
Fixed inconsistency between doc and impl on OS X for the grab feature
Patch for #1133 and #1148.
This commit is contained in:
parent
555d0c484b
commit
bc121e9bda
@ -230,7 +230,7 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(BOOL)isCursorCurrentlyGrabbed
|
-(BOOL)isCursorCurrentlyGrabbed
|
||||||
{
|
{
|
||||||
return [[self window] isKeyWindow] && (m_cursorGrabbed || m_fullscreen);
|
return [[self window] isKeyWindow] && m_cursorGrabbed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,8 +70,7 @@
|
|||||||
/// \brief Check whether the cursor is grabbed or not
|
/// \brief Check whether the cursor is grabbed or not
|
||||||
///
|
///
|
||||||
/// The cursor is grabbed if the window is active (key) and
|
/// The cursor is grabbed if the window is active (key) and
|
||||||
/// either it is in fullscreen mode or the user wants to
|
/// the user wants to grab it.
|
||||||
/// grab it.
|
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
-(BOOL)isCursorCurrentlyGrabbed;
|
-(BOOL)isCursorCurrentlyGrabbed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user