API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsInputs
Devices
Keyboards
KeyboardDeviceManager.h
1
// KeyboardDeviceManager.h
3
//
5
6
namespace
nkInputs
7
{
14
class
KeyboardDeviceManager
final :
public
nkCommon::MaybeSingletonClass<KeyboardDeviceManager>
15
{
16
public :
17
18
// Getters
22
System
*
getSystem
()
const
;
23
24
// Memory management
31
KeyboardDevice
*
createOrRetrieve
(
nkMemory::StringView
name) ;
43
KeyboardDevice
*
record
(
nkMemory::StringView
name,
nkMemory::UniquePtr<KeyboardDevice>
device) ;
50
KeyboardDevice
*
get
(
nkMemory::StringView
name)
const
;
59
KeyboardDevice
*
getByIndex
(
unsigned
int
index)
const
;
66
void
rename
(
nkMemory::StringView
currentName,
nkMemory::StringView
newName) ;
72
void
erase
(
nkMemory::StringView
name) ;
79
nkMemory::UniquePtr<KeyboardDevice>
relinquish
(
nkMemory::StringView
name) ;
80
} ;
81
}
nkInputs::KeyboardDeviceManager::get
KeyboardDevice * get(nkMemory::StringView name) const
nkInputs::KeyboardDeviceManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkInputs::KeyboardDeviceManager::record
KeyboardDevice * record(nkMemory::StringView name, nkMemory::UniquePtr< KeyboardDevice > device)
nkInputs::KeyboardDeviceManager::relinquish
nkMemory::UniquePtr< KeyboardDevice > relinquish(nkMemory::StringView name)
nkInputs::KeyboardDevice
A keyboard device.
Definition:
KeyboardDevice.h:21
nkInputs::System
Main interface with the component.
Definition:
System.h:38
nkInputs
Encompasses all API of component NilkinsInputs.
Definition:
KeyboardDevice.h:7
nkInputs::KeyboardDeviceManager::erase
void erase(nkMemory::StringView name)
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition:
UniquePtr.h:17
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition:
StringView.h:22
nkInputs::KeyboardDeviceManager::getByIndex
KeyboardDevice * getByIndex(unsigned int index) const
nkInputs::KeyboardDeviceManager::getSystem
System * getSystem() const
nkInputs::KeyboardDeviceManager::createOrRetrieve
KeyboardDevice * createOrRetrieve(nkMemory::StringView name)
nkInputs::KeyboardDeviceManager
Manages keyboard devices available in a System.
Definition:
KeyboardDeviceManager.h:15
Generated by
Doxygen
1.8.18