xorg-gtest  0.1
Xorg testing extension to Google Test
 All Classes Functions Pages
xorg::testing::evemu::Device Class Reference

uTouch-Evemu input device for replaying events through the Linux uinput evdev subsystem. More...

#include <xorg/gtest/evemu/device.h>

Public Member Functions

 Device (const std::string &path)
 Create a new device context. More...
 
void Play (const std::string &path) const
 Play a uTouch-Evemu recording through the device. More...
 

Detailed Description

uTouch-Evemu input device for replaying events through the Linux uinput evdev subsystem.

Use the Recording class to play back a specific recording.

Constructor & Destructor Documentation

xorg::testing::evemu::Device::Device ( const std::string &  path)
explicit

Create a new device context.

Parameters
[in]pathPath to uTouch-Evemu device property file.
Exceptions
std::runtime_errorif the device property file could not be found or the device could not be created.

Member Function Documentation

void xorg::testing::evemu::Device::Play ( const std::string &  path) const

Play a uTouch-Evemu recording through the device.

Plays the recording from the beginning through the end. This call will block until the recording has finished.

Parameters
[in]pathPath to uTouch-Evemu recording file.
Exceptions
std::runtime_errorif playback failed for any reason.

The documentation for this class was generated from the following file: