sculpto
input.cpp
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file input.h
3 * \brief Abstract, platform independent input system definition mpdule.
4 *
5 * \author Sabitov Kirill
6 * \date 22 June 2022
7 *********************************************************************/
8
9#include "sclpch.h"
11
12scl::shared<scl::input_system> scl::input_system::Instance = scl::input_system::Create();
13
15{
16#ifdef SCL_PLATFORM_WINDOWS
17 return CreateUnique<windows_input_system>();
18#else
19 SCL_CORE_ASSERT(false, "Unknown platform!");
20 return nullptr;
21#endif
22}
#define SCL_CORE_ASSERT(expr,...)
Definition: assert.h:69
static unique< input_system > Create()
Definition: input.cpp:14
std::shared_ptr< T > shared
Definition: smart_ptr.h:15
std::unique_ptr< T > unique
Definition: smart_ptr.h:25
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.
Input window_handle definition module.