mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +08:00
Add comment regarding input monitoring access on macOS
This commit is contained in:
parent
248fd6dda8
commit
0d05ed739c
@ -338,6 +338,9 @@ static constexpr unsigned int ScancodeCount{static_cast<unsigned int>(Scan::Laun
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Check if a key is pressed
|
||||
///
|
||||
/// \warning On macOS you're required to grant input monitoring access for
|
||||
/// your application in order for `isKeyPressed` to work.
|
||||
///
|
||||
/// \param key Key to check
|
||||
///
|
||||
/// \return `true` if the key is pressed, `false` otherwise
|
||||
@ -348,6 +351,9 @@ static constexpr unsigned int ScancodeCount{static_cast<unsigned int>(Scan::Laun
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Check if a key is pressed
|
||||
///
|
||||
/// \warning On macOS you're required to grant input monitoring access for
|
||||
/// your application in order for `isKeyPressed` to work.
|
||||
///
|
||||
/// \param code Scancode to check
|
||||
///
|
||||
/// \return `true` if the physical key is pressed, `false` otherwise
|
||||
|
Loading…
Reference in New Issue
Block a user