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

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

Issue 2893073003: ozone: evdev: Use correct integer width for gamepad axis values (Closed)
Patch Set: 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 | « no previous file | ui/events/ozone/evdev/gamepad_event_converter_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/gamepad_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/gamepad_event_converter_evdev.h b/ui/events/ozone/evdev/gamepad_event_converter_evdev.h
index 7ec4d2a14b2af88233204c3bf04c974c5a706598..d1f233adefa2992177f6cf2905427e169a60fccf 100644
--- a/ui/events/ozone/evdev/gamepad_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/gamepad_event_converter_evdev.h
@@ -46,12 +46,12 @@ class EVENTS_OZONE_EVDEV_EXPORT GamepadEventConverterEvdev
private:
// This function processes EV_KEY event from gamepad device.
void ProcessEvdevKey(uint16_t code,
- uint16_t value,
+ int value,
const base::TimeTicks& timestamp);
// This function processes EV_ABS event from gamepad device.
void ProcessEvdevAbs(uint16_t code,
- uint16_t value,
+ int value,
const base::TimeTicks& timestamp);
// This function releases all the keys and resets all the axises.
@@ -82,7 +82,7 @@ class EVENTS_OZONE_EVDEV_EXPORT GamepadEventConverterEvdev
GamepadEventType mapped_type,
uint16_t mapped_code);
- bool MapValue(uint16_t value, double* mapped_value);
+ bool MapValue(int value, double* mapped_value);
GamepadEventType mapped_type();
« no previous file with comments | « no previous file | ui/events/ozone/evdev/gamepad_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698