Definition at line 154 of file qmousepc_qws.cpp.
◆ QWSPcMouseSubHandler_intellimouse()
QWSPcMouseSubHandler_intellimouse::QWSPcMouseSubHandler_intellimouse |
( |
int |
f | ) |
|
|
inline |
◆ init()
void QWSPcMouseSubHandler_intellimouse::init |
( |
| ) |
|
|
inline |
Definition at line 162 of file qmousepc_qws.cpp.
167 if (tcflush(
fd,TCIOFLUSH) == -1) {
168 #ifdef QWS_MOUSE_DEBUG 169 perror(
"QWSPcMouseSubHandler_intellimouse: pre-init tcflush");
172 static const uchar initseq[] = { 243, 200, 243, 100, 243, 80 };
173 static const uchar query[] = { 0xf2 };
174 if (
QT_WRITE(
fd, initseq,
sizeof(initseq))!=
sizeof(initseq)) {
179 if (tcflush(
fd,TCIOFLUSH) == -1) {
180 #ifdef QWS_MOUSE_DEBUG 181 perror(
"QWSPcMouseSubHandler_intellimouse: post-init tcflush");
184 if (
QT_WRITE(
fd, query,
sizeof(query))!=
sizeof(query)) {
192 switch (reply[n-1]) {
◆ tryData()
int QWSPcMouseSubHandler_intellimouse::tryData |
( |
| ) |
|
|
inlinevirtual |
Implements QWSPcMouseSubHandler.
Definition at line 205 of file qmousepc_qws.cpp.
211 #ifdef QWS_MOUSE_DEBUG 212 qDebug(
"Intellimouse: skipping (overflow)");
220 int nbstate =
buffer[0] & 0x7;
221 #ifdef QWS_MOUSE_DEBUG 225 if (wheel < -2 || wheel > 2)
228 #ifdef QWS_MOUSE_DEBUG 229 qDebug(
"Intellimouse: motion %d,%d, state %d, raw wheel %d, wheel %d",
motion.
x(),
motion.
y(), nbstate, debugwheel,
wheel);
Q_CORE_EXPORT void qDebug(const char *,...)
The QPoint class defines a point in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
int x() const
Returns the x coordinate of this point.
◆ packetsize
int QWSPcMouseSubHandler_intellimouse::packetsize |
|
private |
The documentation for this class was generated from the following file: