1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum values.
8 // This file defines the canonical axes mapping order for gamepad-like devices.
10 // TODO(SaurabhK): Consolidate with CanonicalAxisIndex enum in
11 // gamepad_standard_mappings.h, crbug.com/351558.
12 CANONICAL_AXIS_INDEX(AXIS_LEFT_STICK_X
, 0)
13 CANONICAL_AXIS_INDEX(AXIS_LEFT_STICK_Y
, 1)
14 CANONICAL_AXIS_INDEX(AXIS_RIGHT_STICK_X
, 2)
15 CANONICAL_AXIS_INDEX(AXIS_RIGHT_STICK_Y
, 3)
16 CANONICAL_AXIS_INDEX(NUM_CANONICAL_AXES
, 4)