Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: ui/events/ozone/evdev/event_device_info.h

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Support Gamepad in Ozone. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/ozone/evdev/event_converter_test_util.cc ('k') | ui/events/ozone/evdev/event_device_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_device_info.h
diff --git a/ui/events/ozone/evdev/event_device_info.h b/ui/events/ozone/evdev/event_device_info.h
index b4ddbcdad8de19b9fbdb189db4bfebe0f4a54fa7..0401b64a01e10f71105c1240a0e30a4f6196ec59 100644
--- a/ui/events/ozone/evdev/event_device_info.h
+++ b/ui/events/ozone/evdev/event_device_info.h
@@ -69,6 +69,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventDeviceInfo {
void SetAbsMtSlots(unsigned int code, const std::vector<int32_t>& values);
void SetAbsMtSlot(unsigned int code, unsigned int slot, uint32_t value);
void SetDeviceType(InputDeviceType type);
+ void SetId(uint16_t vendor_id, uint16_t product_id);
// Check events this device can generate.
bool HasEventType(unsigned int type) const;
@@ -139,6 +140,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventDeviceInfo {
// Determine whether there's a touchscreen on this device.
bool HasTouchscreen() const;
+ // Determine whether there's a gamepad on this device.
+ bool HasGamepad() const;
+
// The device type (internal or external.)
InputDeviceType device_type() const { return device_type_; }
« no previous file with comments | « ui/events/ozone/evdev/event_converter_test_util.cc ('k') | ui/events/ozone/evdev/event_device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698