Loading...
Searching...
No Matches
fakeDriver.h
Go to the documentation of this file.
#include <BALL/VIEW/INPUT/inputDeviceDriver.h>
namespace BALL
{
namespace VIEW
{
class FakeDriver : public InputDeviceDriver, protected QThread
{
public:
FakeDriver(Scene* receiver)
: InputDeviceDriver(receiver) {}
bool setUp() { return true; }
bool tearDown() { return true; }
void setEnabled(bool enabled) { InputDeviceDriver::setEnabled(enabled); if(enabled) start(); }
private:
void run() { while(true) { emitPositionChange(1,2,-3,4,5,6); msleep(20); } }
};
}
}
BALL::VIEW::FakeDriver::setUp
bool setUp()
Definition fakeDriver.h:12
BALL::VIEW::FakeDriver::FakeDriver
FakeDriver(Scene *receiver)
Definition fakeDriver.h:10
BALL::VIEW::FakeDriver::tearDown
bool tearDown()
Definition fakeDriver.h:13
BALL::VIEW::FakeDriver::setEnabled
void setEnabled(bool enabled)
Definition fakeDriver.h:15
BALL::VIEW::InputDeviceDriver::emitPositionChange
void emitPositionChange(double x, double y, double z, double a, double b, double c)
BALL::VIEW::InputDeviceDriver::setEnabled
void setEnabled(bool enabled)
BALL::VIEW::InputDeviceDriver::InputDeviceDriver
InputDeviceDriver(QWidget *reciever)
BALL::VIEW::Scene
Definition scene.h:141
QThread
inputDeviceDriver.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13