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

#include <input_devices.h>

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

Public Member Functions

 GamepadDevice (InputConnection conn)
 
Result< void > SendKeyEvent (int code, bool down)
 
Result< void > SendMotionEvent (int code, int value)
 
- 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

◆ GamepadDevice()

cuttlefish::GamepadDevice::GamepadDevice ( InputConnection  conn)
inline

Member Function Documentation

◆ SendKeyEvent()

Result< void > cuttlefish::GamepadDevice::SendKeyEvent ( int  code,
bool  down 
)

◆ SendMotionEvent()

Result< void > cuttlefish::GamepadDevice::SendMotionEvent ( int  code,
int  value 
)

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