PEBL
2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
validator/PlatformKeyboard.cpp
Go to the documentation of this file.
1
//* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
#include "
PlatformKeyboard.h
"
3
4
PlatformKeyboard::PlatformKeyboard
() {}
5
PlatformKeyboard::~PlatformKeyboard
() {}
6
7
PEBL_Keycode
PlatformKeyboard::IsKeyDown
(
PEBL_Keycode
code)
const
{
8
return
PEBL_KEYCODE_NOTHING
;
// No keys pressed in validator mode
9
}
10
11
bool
PlatformKeyboard::IsKeyUp
(
PEBL_Keycode
code)
const
{
12
return
true
;
// All keys always up in validator mode
13
}
14
15
std::ostream&
PlatformKeyboard::SendToStream
(std::ostream& out)
const
{
16
out <<
"PlatformKeyboard (validator)"
;
17
return
out;
18
}
PEBL_Keycode
PEBL_Keycode
Definition
PKeyboard.h:78
PEBL_KEYCODE_NOTHING
@ PEBL_KEYCODE_NOTHING
Definition
PKeyboard.h:331
PlatformKeyboard::SendToStream
virtual std::ostream & SendToStream(std::ostream &out) const
Definition
validator/PlatformKeyboard.cpp:15
PlatformKeyboard::~PlatformKeyboard
virtual ~PlatformKeyboard()
Standard Destructor.
Definition
sdl/PlatformKeyboard.cpp:75
PlatformKeyboard::IsKeyUp
virtual bool IsKeyUp(PEBL_Keycode key) const
Definition
sdl/PlatformKeyboard.cpp:113
PlatformKeyboard::PlatformKeyboard
PlatformKeyboard()
Standard Constructor.
Definition
sdl/PlatformKeyboard.cpp:59
PlatformKeyboard::IsKeyDown
virtual PEBL_Keycode IsKeyDown(PEBL_Keycode key) const
Primitive key event poller.
Definition
sdl/PlatformKeyboard.cpp:85
PlatformKeyboard.h
src
platforms
validator
PlatformKeyboard.cpp
Generated by
1.9.8