Qt 4.8
Functions
qtslib.cpp File Reference
#include "qtslib.h"
#include <QSocketNotifier>
#include <QStringList>
#include <QPoint>
#include <QWindowSystemInterface>
#include <Qt>
#include <errno.h>
#include <tslib.h>
#include <qdebug.h>

Go to the source code of this file.

Functions

static bool get_sample (struct tsdev *dev, struct ts_sample *sample, bool rawMode)
 

Function Documentation

◆ get_sample()

static bool get_sample ( struct tsdev *  dev,
struct ts_sample *  sample,
bool  rawMode 
)
static

Definition at line 98 of file qtslib.cpp.

Referenced by QTsLibMouseHandler::readMouseData().

99 {
100  if (rawMode) {
101  return (ts_read_raw(dev, sample, 1) == 1);
102  } else {
103  int ret = ts_read(dev, sample, 1);
104  return ( ret == 1);
105  }
106 }