Add comment regarding input monitoring access on macOS

This commit is contained in:
Lukas Dürrenberger 2024-12-05 00:09:21 +01:00
parent 248fd6dda8
commit 0d05ed739c

View File

@ -338,6 +338,9 @@ static constexpr unsigned int ScancodeCount{static_cast<unsigned int>(Scan::Laun
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check if a key is pressed /// \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 /// \param key Key to check
/// ///
/// \return `true` if the key is pressed, `false` otherwise /// \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 /// \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 /// \param code Scancode to check
/// ///
/// \return `true` if the physical key is pressed, `false` otherwise /// \return `true` if the physical key is pressed, `false` otherwise