Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
glfwgamepad.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
11
//------------------------------------------------------------------------------
12
#include "
input/base/gamepadbase.h
"
13
#include "
util/string.h
"
14
15
namespace
GLFW
16
{
17
class
GLFWGamePad
:
public
Base::GamePadBase
18
{
19
__DeclareClass
(
GLFWGamePad
);
20
public
:
22
GLFWGamePad
();
24
virtual
~GLFWGamePad
();
25
27
virtual
void
Poll
();
28
30
virtual
Util::Array<Input::InputEvent>
GetStateAsInputEvents
()
const
;
31
32
private
:
34
Util::Array<Input::InputEvent>
frameEvents
;
35
37
Util::String
warnedGuid
;
38
};
39
40
}
// namespace GLFW
41
//------------------------------------------------------------------------------
Base::GamePadBase
An input handler which represents one of at most 4 game pads.
Definition
gamepadbase.h:24
GLFW::GLFWGamePad::warnedGuid
Util::String warnedGuid
the joystick this handler has already reported as unmapped, so the same one is not printed every fram...
Definition
glfwgamepad.h:37
GLFW::GLFWGamePad::__DeclareClass
__DeclareClass(GLFWGamePad)
GLFW::GLFWGamePad::frameEvents
Util::Array< Input::InputEvent > frameEvents
the edges recorded by the poll, kept so the events can be handed to the handler chain
Definition
glfwgamepad.h:34
GLFW::GLFWGamePad::GetStateAsInputEvents
virtual Util::Array< Input::InputEvent > GetStateAsInputEvents() const
the button edges the last poll produced
Definition
glfwgamepad.cc:162
GLFW::GLFWGamePad::GLFWGamePad
GLFWGamePad()
constructor
Definition
glfwgamepad.cc:57
GLFW::GLFWGamePad::Poll
virtual void Poll()
read the pad and put this frame's state on it
Definition
glfwgamepad.cc:81
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
Util::String
Nebula's universal string class.
Definition
string.h:50
gamepadbase.h
GLFW
Definition
glfwgamepad.cc:11
string.h
code
input
input
glfw
glfwgamepad.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.