mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-30 16:28:58 +02:00
Make Application into a singleton
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -1075,4 +1075,10 @@ auto Application::is_key_released(uint32_t key) const -> bool
|
||||
return !m_key_state[key] && m_key_state_previous[key];
|
||||
}
|
||||
|
||||
auto Application::the() -> Application &
|
||||
{
|
||||
static Application self {};
|
||||
return self;
|
||||
}
|
||||
|
||||
} // namespace Lunar
|
||||
|
||||
Reference in New Issue
Block a user