PEBL
2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PJoystick.cpp
Go to the documentation of this file.
1
//* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
3
// Name: src/devices/PJoystick.cpp
4
// Purpose: Class for handling joysticks
5
// Author: Shane T. Mueller, Ph.D.
6
// Copyright: (c) 2011 Shane T. Mueller <smueller@obereed.net>
7
// License: GPL 2
8
//
9
//
10
//
11
// This file is part of the PEBL project.
12
//
13
// PEBL is free software; you can redistribute it and/or modify
14
// it under the terms of the GNU General Public License as published by
15
// the Free Software Foundation; either version 2 of the License, or
16
// (at your option) any later version.
17
//
18
// PEBL is distributed in the hope that it will be useful,
19
// but WITHOUT ANY WARRANTY; without even the implied warranty of
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
// GNU General Public License for more details.
22
//
23
// You should have received a copy of the GNU General Public License
24
// along with PEBL; if not, write to the Free Software
25
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
#include "
PJoystick.h
"
28
#include "../utility/PError.h"
29
30
31
using
std::ostream;
32
using
std::fstream;
33
using
std::flush;
34
using
std::string;
35
using
std::cout;
36
37
PJoystick::PJoystick
()
38
{
39
mCDT
=
CDT_JOYSTICK
;
40
}
41
42
43
PJoystick::~PJoystick
()
44
{
45
}
46
47
48
ostream &
PJoystick::SendToStream
(ostream & out)
const
49
{
50
out <<
"<Generic Joystick Object>"
<< flush;
51
return
out;
52
}
53
CDT_JOYSTICK
@ CDT_JOYSTICK
Definition
PEBLObject.h:54
PJoystick.h
PEBLObjectBase::mCDT
ComplexDataType mCDT
Definition
PEBLObject.h:109
PJoystick::SendToStream
virtual std::ostream & SendToStream(std::ostream &out) const
Definition
PJoystick.cpp:48
PJoystick::~PJoystick
virtual ~PJoystick()
The Standard destructor.
Definition
PJoystick.cpp:43
PJoystick::PJoystick
PJoystick()
The Standard constructor.
Definition
PJoystick.cpp:37
src
devices
PJoystick.cpp
Generated by
1.9.8