Skip to content

Commit 4eb28fa

Browse files
committed
Bug 1545180 - Correct DualShock 4 mapping type. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D27945 --HG-- extra : moz-landing-system : lando
1 parent 173788f commit 4eb28fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dom/gamepad/GamepadRemapping.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ class DefaultRemapper final : public GamepadRemapper {
100100
numButtons = aButtonCount;
101101
}
102102

103+
virtual GamepadMappingType GetMappingType() const override {
104+
return GamepadMappingType::_empty;
105+
}
106+
103107
virtual void RemapAxisMoveEvent(uint32_t aIndex, uint32_t aAxis,
104108
double aValue) const override {
105109
RefPtr<GamepadPlatformService> service =
@@ -362,10 +366,6 @@ class Dualshock4Remapper final : public GamepadRemapper {
362366
return DUALSHOCK_BUTTON_COUNT;
363367
}
364368

365-
virtual GamepadMappingType GetMappingType() const override {
366-
return GamepadMappingType::_empty;
367-
}
368-
369369
virtual void RemapAxisMoveEvent(uint32_t aIndex, uint32_t aAxis,
370370
double aValue) const override {
371371
RefPtr<GamepadPlatformService> service =

0 commit comments

Comments
 (0)