Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
InputHandler.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_INPUT_EVENT_HANDLER_H_
34
#define DVD_INPUT_EVENT_HANDLER_H_
35
36
#include "
Platform/Headers/SDLEventListener.h
"
37
38
namespace
Divide
{
39
40
class
Kernel;
41
class
Application;
42
43
namespace
Input {
44
45
class
InputAggregatorInterface;
46
class
InputHandler
final :
public
SDLEventListener
{
47
public
:
48
explicit
InputHandler
(
InputAggregatorInterface
& eventListener,
Application
& app)
noexcept
;
49
50
protected
:
51
bool
onSDLEvent
(SDL_Event event)
override
;
52
53
protected
:
54
Application
&
_app
;
55
InputAggregatorInterface
&
_eventListener
;
56
};
57
58
};
// namespace Input
59
};
// namespace Divide;
60
61
#endif
//DVD_INPUT_EVENT_HANDLER_H_
SDLEventListener.h
Divide::Application
Class that provides an interface between our framework and the OS (start/stop, display support,...
Definition:
Application.h:97
Divide::Input::InputAggregatorInterface
Definition:
InputAggregatorInterface.h:144
Divide::Input::InputHandler
Definition:
InputHandler.h:46
Divide::Input::InputHandler::_app
Application & _app
Definition:
InputHandler.h:54
Divide::Input::InputHandler::onSDLEvent
bool onSDLEvent(SDL_Event event) override
Definition:
InputHandler.cpp:49
Divide::Input::InputHandler::_eventListener
InputAggregatorInterface & _eventListener
Definition:
InputHandler.h:55
Divide::SDLEventListener
Definition:
SDLEventListener.h:40
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Source
Platform
Input
Headers
InputHandler.h
Generated on Fri May 17 2024 16:59:54 for Divide Framework by
1.9.6