Android-cuttlefish cvd tool
Public Member Functions | List of all members
cuttlefish::MouseDevice Class Reference

#include <input_devices.h>

Inheritance diagram for cuttlefish::MouseDevice:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::MouseDevice:
Collaboration graph
[legend]

Public Member Functions

 MouseDevice (InputConnection conn)
 
Result< void > SendMoveEvent (int x, int y)
 
Result< void > SendButtonEvent (int button, bool down)
 
Result< void > SendWheelEvent (int pixels)
 
- Public Member Functions inherited from cuttlefish::InputDevice
 InputDevice (InputConnection conn)
 
virtual ~InputDevice ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from cuttlefish::InputDevice
Result< void > WriteEvents (const EventBuffer &buffer)
 

Constructor & Destructor Documentation

◆ MouseDevice()

cuttlefish::MouseDevice::MouseDevice ( InputConnection  conn)
inline

Member Function Documentation

◆ SendButtonEvent()

Result< void > cuttlefish::MouseDevice::SendButtonEvent ( int  button,
bool  down 
)

◆ SendMoveEvent()

Result< void > cuttlefish::MouseDevice::SendMoveEvent ( int  x,
int  y 
)

◆ SendWheelEvent()

Result< void > cuttlefish::MouseDevice::SendWheelEvent ( int  pixels)

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