![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
Public Member Functions | |
Impl (NotNull< HWND > window) | |
Impl (const Impl &manager)=delete | |
Impl (Impl &&manager) noexcept | |
~Impl () | |
Impl & | operator= (const Impl &manager)=delete |
Impl & | operator= (Impl &&manager)=delete |
NotNull< HWND > | GetWindow () noexcept |
void | Update () noexcept |
const Keyboard & | GetKeyboard () const noexcept |
const Mouse & | GetMouse () const noexcept |
Private Member Functions | |
void | InitializeDI () |
void | InitializeInputSystems () |
Private Attributes | |
NotNull< HWND > | m_window |
ComPtr< IDirectInput8 > | m_di |
UniquePtr< Keyboard > | m_keyboard |
UniquePtr< Mouse > | m_mouse |
A class of input managers.
|
explicit |
|
delete |
Constructs an input manager from the given input manager.
[in] | manager | A reference to the input manager to copy. |
|
defaultnoexcept |
Constructs an input manager by moving the given input manager.
[in] | manager | A reference to the input manager to move. |
|
default |
Destructs this input manager.
|
noexcept |
Returns the keyboard of this input manager.
|
noexcept |
Returns the mouse of this input manager.
|
noexcept |
Returns the window handle of this input manager.
|
private |
Initializes the DirectInput object of this input manager.
Exception | Failed to initialize the DirectInput object. |
|
private |
Initializes the different input systems of this input manager.
Exception | Failed to initialize the input systems. |
Copies the given input manager to this input manager.
[in] | manager | A reference to the input manager to copy. |
Moves the given input manager to this input manager.
[in] | manager | A reference to the input manager to move. |
|
noexcept |
Updates the state of the input systems of this input manager.
|
private |
A pointer to the DirectInput object of this input manager.
The methods of the IDirectInput8 interface are used to enumerate, create, and retrieve the status of Microsoft DirectInput device.
A pointer to the keyboard of this input manager.
A pointer to the mouse of this input manager.
|
private |
The handle of the parent window of this input manager.