mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +08:00
Make keyboard key/scancode count variables inline
This commit is contained in:
parent
bc268fbaea
commit
8316c9e8d5
@ -159,7 +159,7 @@ enum class Key
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
static constexpr unsigned int KeyCount{static_cast<unsigned int>(Key::Pause) + 1};
|
||||
inline constexpr unsigned int KeyCount{static_cast<unsigned int>(Key::Pause) + 1};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Scancodes
|
||||
@ -333,7 +333,7 @@ using Scancode = Scan;
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
static constexpr unsigned int ScancodeCount{static_cast<unsigned int>(Scan::LaunchMediaSelect) + 1};
|
||||
inline constexpr unsigned int ScancodeCount{static_cast<unsigned int>(Scan::LaunchMediaSelect) + 1};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Check if a key is pressed
|
||||
|
Loading…
Reference in New Issue
Block a user