1 /*
2  *  OpenSCAD (www.openscad.org)
3  *  Copyright (C) 2009-2015 Clifford Wolf <clifford@clifford.at> and
4  *                          Marius Kintel <marius@kintel.net>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  As a special exception, you have permission to link this program
12  *  with the CGAL library and distribute executables, as long as you
13  *  follow the requirements of the GNU GPL in regard to all of the
14  *  software in the executable aside from CGAL.
15  *
16  *  This program is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *  GNU General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with this program; if not, write to the Free Software
23  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24  *
25  */
26 #include "InputDriver.h"
27 
28 const QEvent::Type InputEvent::eventType = static_cast<QEvent::Type>(QEvent::registerEventType());
29 
InputEvent(const bool activeOnly)30 InputEvent::InputEvent(const bool activeOnly) : QEvent(eventType), activeOnly(activeOnly)
31 {
32 
33 }
34 
~InputEvent()35 InputEvent::~InputEvent()
36 {
37 
38 }
39 
InputDriver()40 InputDriver::InputDriver()
41 {
42 
43 }
44 
~InputDriver()45 InputDriver::~InputDriver()
46 {
47 
48 }
49 
isOpen() const50 bool InputDriver::isOpen() const
51 {
52     return isRunning();
53 }
54 
openOnce() const55 bool InputDriver::openOnce() const
56 {
57     return false;
58 }
59