Skip to content

Commit b07f940

Browse files
LuoZhongYaokartben
authored andcommitted
input: Fix missing INPUT_ when aliasing buttons
The aliases defined by INPUT_BTN_A/B/X/Y are missing the INPUT_ prefix. Signed-off-by: ZhongYao Luo <[email protected]>
1 parent 84532b2 commit b07f940

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/zephyr/dt-bindings/input/input-event-codes.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@
195195
#define INPUT_BTN_7 0x107 /**< 7 button */
196196
#define INPUT_BTN_8 0x108 /**< 8 button */
197197
#define INPUT_BTN_9 0x109 /**< 9 button */
198-
#define INPUT_BTN_A BTN_SOUTH /**< A button */
199-
#define INPUT_BTN_B BTN_EAST /**< B button */
198+
#define INPUT_BTN_A INPUT_BTN_SOUTH /**< A button */
199+
#define INPUT_BTN_B INPUT_BTN_EAST /**< B button */
200200
#define INPUT_BTN_BACK 0x116 /**< Back button */
201201
#define INPUT_BTN_C 0x132 /**< C button */
202202
#define INPUT_BTN_DPAD_DOWN 0x221 /**< Directional pad Down */
@@ -226,8 +226,8 @@
226226
#define INPUT_BTN_TR 0x137 /**< Right trigger (R1) */
227227
#define INPUT_BTN_TR2 0x139 /**< Right trigger 2 (R2) */
228228
#define INPUT_BTN_WEST 0x134 /**< West button */
229-
#define INPUT_BTN_X BTN_NORTH /**< X button */
230-
#define INPUT_BTN_Y BTN_WEST /**< Y button */
229+
#define INPUT_BTN_X INPUT_BTN_NORTH /**< X button */
230+
#define INPUT_BTN_Y INPUT_BTN_WEST /**< Y button */
231231
#define INPUT_BTN_Z 0x135 /**< Z button */
232232
/** @} */
233233

0 commit comments

Comments
 (0)