summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-03-25 16:30:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-03-25 16:30:20 +0100
commit64f6353d85adb1c242b7b3073af3d25d735f3666 (patch)
tree4435b07c01128b250e13ff7c6f7676a26758b372 /ftnoir_protocol_mouse/ftnoir_protocol_mouse.h
parent105069bb20284abb3ded7a50ac317cea2c758fe9 (diff)
mouse: move mouse relative to last cursor position
Makes mouse output actually useful for fullscreen games. Issue: #113
Diffstat (limited to 'ftnoir_protocol_mouse/ftnoir_protocol_mouse.h')
-rw-r--r--ftnoir_protocol_mouse/ftnoir_protocol_mouse.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h
index fcc7426a..9f76571b 100644
--- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h
+++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h
@@ -59,12 +59,13 @@ struct settings {
class FTNoIR_Protocol : public IProtocol
{
public:
- FTNoIR_Protocol() {}
+ FTNoIR_Protocol() : last_x(0), last_y(0) {}
bool correct();
void pose( const double *headpose);
QString game_name() {
return "Mouse tracker";
}
+ int last_x, last_y;
private:
struct settings s;
};