ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
input.cpp
Go to the documentation of this file.
1
/*
2
input.cpp - input functions class
3
4
Copyright (c) 2014 Luc Lebosse. All rights reserved.
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#include "../../include/esp3d_config.h"
22
#if defined (INPUT_DEVICE)
23
#include "
input.h
"
24
#include "../../core/settings_esp3d.h"
25
#include "../../core/esp3doutput.h"
26
27
28
Input
esp3d_input
;
29
30
31
Input::Input
()
32
{
33
_started =
false
;
34
}
35
36
Input::~Input
()
37
{
38
end
();
39
}
40
41
bool
Input::begin
()
42
{
43
bool
res =
true
;
44
_started =
false
;
45
if
(!res) {
46
end
();
47
}
48
_started = res;
49
return
_started;
50
}
51
52
void
Input::end
()
53
{
54
if
(!_started) {
55
return
;
56
}
57
_started =
false
;
58
}
59
60
bool
Input::started
()
61
{
62
return
_started;
63
}
64
65
66
void
Input::handle
()
67
{
68
if
(_started) {
69
70
}
71
}
72
73
#endif //INPUT_DEVICE
Input::begin
bool begin()
Input::started
bool started()
Input::~Input
~Input()
Input::handle
void handle()
Input::Input
Input()
esp3d_input
Input esp3d_input
Input
Definition:
input.h:24
Input::end
void end()
input.h
esp3d
src
modules
input
input.cpp
Generated by
1.8.17