xorg-gtest
0.1
Xorg testing extension to Google Test
|
uTouch-Evemu input device for replaying events through the Linux uinput evdev subsystem. More...
Public Member Functions | |
Device (const std::string &path) | |
Create a new device context. | |
void | Play (const std::string &path) const |
Play a uTouch-Evemu recording through the device. |
uTouch-Evemu input device for replaying events through the Linux uinput evdev subsystem.
Use the Recording class to play back a specific recording.
xorg::testing::evemu::Device::Device | ( | const std::string & | path | ) | [explicit] |
Create a new device context.
[in] | path | Path to uTouch-Evemu device property file. |
std::runtime_error | if the device property file could not be found or the device could not be created. |
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.
[in] | path | Path to uTouch-Evemu recording file. |
std::runtime_error | if playback failed for any reason. |