Norbert's Game Engine v200
Loading...
Searching...
No Matches
eInput Class Reference

#include <Input.hpp>

Inheritance diagram for eInput:
eBase eKeyboard eMouse

Public Member Functions

void SetWindow (eWindow *window)
 
eWindow * GetWindow ()
 
GLFWwindow * GetGLFWwindow ()
 
void SetInputMode (const int mode, const int value)
 
- Public Member Functions inherited from eBase
template<typename T >
T * Cast (eBase *obj)
 Cast class to base.
 

Detailed Description

Base input class

Definition at line 20 of file Input.hpp.

Member Function Documentation

◆ GetGLFWwindow()

GLFWwindow * eInput::GetGLFWwindow ( )

Definition at line 17 of file Input.cpp.

18{
19 return mWindow->GetGLFWwindow();
20}

◆ GetWindow()

eWindow * eInput::GetWindow ( )

Definition at line 12 of file Input.cpp.

13{
14 return mWindow;
15}

◆ SetInputMode()

void eInput::SetInputMode ( const int mode,
const int value )

Definition at line 22 of file Input.cpp.

23{
24 glfwSetInputMode(mWindow->GetGLFWwindow(), mode, value);
25}

◆ SetWindow()

void eInput::SetWindow ( eWindow * window)

Definition at line 6 of file Input.cpp.

7{
8 mWindow = nullptr;
9 mWindow = window;
10}

The documentation for this class was generated from the following files: