git-svn-id: svn://db.shs.com.ru/pip@531 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -366,7 +366,7 @@ void PIKbdListener::readKeyboard() {
|
|||||||
memcpy(&we, &me, sizeof(me));
|
memcpy(&we, &me, sizeof(me));
|
||||||
we.action = MouseWheel;
|
we.action = MouseWheel;
|
||||||
we.direction = (b == 0);
|
we.direction = (b == 0);
|
||||||
piCout << "wheel" << we.direction;
|
//piCout << "wheel" << we.direction;
|
||||||
wheelEvent(we, kbddata_);
|
wheelEvent(we, kbddata_);
|
||||||
} else {
|
} else {
|
||||||
switch (b) {
|
switch (b) {
|
||||||
@@ -390,8 +390,8 @@ void PIKbdListener::readKeyboard() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (a == 0x40) me.action = MouseMove;
|
if (a == 0x40) me.action = MouseMove;
|
||||||
PIString _s[] = {"press", "release", "move"};
|
//PIString _s[] = {"press", "release", "dbl click", "move"};
|
||||||
piCoutObj << _s[me.action] << me.buttons << ":" << me.x << me.y;
|
//piCoutObj << _s[me.action] << me.buttons << ":" << me.x << me.y;
|
||||||
mouseEvent(me, kbddata_);
|
mouseEvent(me, kbddata_);
|
||||||
}
|
}
|
||||||
//piCout << me.x << me.y << PICoutManipulators::Hex << b << a;
|
//piCout << me.x << me.y << PICoutManipulators::Hex << b << a;
|
||||||
|
|||||||
Reference in New Issue
Block a user