BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
INPUT
fakeDriver.h
Go to the documentation of this file.
1
#include <
BALL/VIEW/INPUT/inputDeviceDriver.h
>
2
3
namespace
BALL
4
{
5
namespace
VIEW
6
{
7
class
FakeDriver
:
public
InputDeviceDriver
,
protected
QThread
8
{
9
public
:
10
FakeDriver
(
Scene
* receiver)
11
:
InputDeviceDriver
(receiver) {}
12
bool
setUp
() {
return
true
; }
13
bool
tearDown
() {
return
true
; }
14
15
void
setEnabled
(
bool
enabled) {
InputDeviceDriver::setEnabled
(enabled);
if
(enabled) start(); }
16
17
private
:
18
void
run
() {
while
(
true
) {
emitPositionChange
(1,2,-3,4,5,6); msleep(20); } }
19
};
20
}
21
}
Generated by
1.8.3.1