@@ -755,15 +755,12 @@ static int steam_input_register(struct steam_device *steam)
755
755
input_set_capability (input , EV_KEY , BTN_THUMBL );
756
756
input_set_capability (input , EV_KEY , BTN_THUMB );
757
757
input_set_capability (input , EV_KEY , BTN_THUMB2 );
758
+ input_set_capability (input , EV_KEY , BTN_GRIPL );
759
+ input_set_capability (input , EV_KEY , BTN_GRIPR );
758
760
if (steam -> quirks & STEAM_QUIRK_DECK ) {
759
761
input_set_capability (input , EV_KEY , BTN_BASE );
760
- input_set_capability (input , EV_KEY , BTN_TRIGGER_HAPPY1 );
761
- input_set_capability (input , EV_KEY , BTN_TRIGGER_HAPPY2 );
762
- input_set_capability (input , EV_KEY , BTN_TRIGGER_HAPPY3 );
763
- input_set_capability (input , EV_KEY , BTN_TRIGGER_HAPPY4 );
764
- } else {
765
- input_set_capability (input , EV_KEY , BTN_GEAR_DOWN );
766
- input_set_capability (input , EV_KEY , BTN_GEAR_UP );
762
+ input_set_capability (input , EV_KEY , BTN_GRIPL2 );
763
+ input_set_capability (input , EV_KEY , BTN_GRIPR2 );
767
764
}
768
765
769
766
input_set_abs_params (input , ABS_X , -32767 , 32767 , 0 , 0 );
@@ -1419,8 +1416,8 @@ static inline s16 steam_le16(u8 *data)
1419
1416
* 9.4 | BTN_SELECT | menu left
1420
1417
* 9.5 | BTN_MODE | steam logo
1421
1418
* 9.6 | BTN_START | menu right
1422
- * 9.7 | BTN_GEAR_DOWN | left back lever
1423
- * 10.0 | BTN_GEAR_UP | right back lever
1419
+ * 9.7 | BTN_GRIPL | left back lever
1420
+ * 10.0 | BTN_GRIPR | right back lever
1424
1421
* 10.1 | -- | left-pad clicked
1425
1422
* 10.2 | BTN_THUMBR | right-pad clicked
1426
1423
* 10.3 | BTN_THUMB | left-pad touched (but see explanation below)
@@ -1485,8 +1482,8 @@ static void steam_do_input_event(struct steam_device *steam,
1485
1482
input_event (input , EV_KEY , BTN_SELECT , !!(b9 & BIT (4 )));
1486
1483
input_event (input , EV_KEY , BTN_MODE , !!(b9 & BIT (5 )));
1487
1484
input_event (input , EV_KEY , BTN_START , !!(b9 & BIT (6 )));
1488
- input_event (input , EV_KEY , BTN_GEAR_DOWN , !!(b9 & BIT (7 )));
1489
- input_event (input , EV_KEY , BTN_GEAR_UP , !!(b10 & BIT (0 )));
1485
+ input_event (input , EV_KEY , BTN_GRIPL , !!(b9 & BIT (7 )));
1486
+ input_event (input , EV_KEY , BTN_GRIPR , !!(b10 & BIT (0 )));
1490
1487
input_event (input , EV_KEY , BTN_THUMBR , !!(b10 & BIT (2 )));
1491
1488
input_event (input , EV_KEY , BTN_THUMBL , !!(b10 & BIT (6 )));
1492
1489
input_event (input , EV_KEY , BTN_THUMB , lpad_touched || lpad_and_joy );
@@ -1547,8 +1544,8 @@ static void steam_do_input_event(struct steam_device *steam,
1547
1544
* 9.4 | BTN_SELECT | menu left
1548
1545
* 9.5 | BTN_MODE | steam logo
1549
1546
* 9.6 | BTN_START | menu right
1550
- * 9.7 | BTN_TRIGGER_HAPPY3 | left bottom grip button
1551
- * 10.0 | BTN_TRIGGER_HAPPY4 | right bottom grip button
1547
+ * 9.7 | BTN_GRIPL2 | left bottom grip button
1548
+ * 10.0 | BTN_GRIPR2 | right bottom grip button
1552
1549
* 10.1 | BTN_THUMB | left pad pressed
1553
1550
* 10.2 | BTN_THUMB2 | right pad pressed
1554
1551
* 10.3 | -- | left pad touched
@@ -1573,8 +1570,8 @@ static void steam_do_input_event(struct steam_device *steam,
1573
1570
* 12.6 | -- | unknown
1574
1571
* 12.7 | -- | unknown
1575
1572
* 13.0 | -- | unknown
1576
- * 13.1 | BTN_TRIGGER_HAPPY1 | left top grip button
1577
- * 13.2 | BTN_TRIGGER_HAPPY2 | right top grip button
1573
+ * 13.1 | BTN_GRIPL | left top grip button
1574
+ * 13.2 | BTN_GRIPR | right top grip button
1578
1575
* 13.3 | -- | unknown
1579
1576
* 13.4 | -- | unknown
1580
1577
* 13.5 | -- | unknown
@@ -1659,8 +1656,8 @@ static void steam_do_deck_input_event(struct steam_device *steam,
1659
1656
input_event (input , EV_KEY , BTN_SELECT , !!(b9 & BIT (4 )));
1660
1657
input_event (input , EV_KEY , BTN_MODE , !!(b9 & BIT (5 )));
1661
1658
input_event (input , EV_KEY , BTN_START , !!(b9 & BIT (6 )));
1662
- input_event (input , EV_KEY , BTN_TRIGGER_HAPPY3 , !!(b9 & BIT (7 )));
1663
- input_event (input , EV_KEY , BTN_TRIGGER_HAPPY4 , !!(b10 & BIT (0 )));
1659
+ input_event (input , EV_KEY , BTN_GRIPL2 , !!(b9 & BIT (7 )));
1660
+ input_event (input , EV_KEY , BTN_GRIPR2 , !!(b10 & BIT (0 )));
1664
1661
input_event (input , EV_KEY , BTN_THUMBL , !!(b10 & BIT (6 )));
1665
1662
input_event (input , EV_KEY , BTN_THUMBR , !!(b11 & BIT (2 )));
1666
1663
input_event (input , EV_KEY , BTN_DPAD_UP , !!(b9 & BIT (0 )));
@@ -1669,8 +1666,8 @@ static void steam_do_deck_input_event(struct steam_device *steam,
1669
1666
input_event (input , EV_KEY , BTN_DPAD_DOWN , !!(b9 & BIT (3 )));
1670
1667
input_event (input , EV_KEY , BTN_THUMB , !!(b10 & BIT (1 )));
1671
1668
input_event (input , EV_KEY , BTN_THUMB2 , !!(b10 & BIT (2 )));
1672
- input_event (input , EV_KEY , BTN_TRIGGER_HAPPY1 , !!(b13 & BIT (1 )));
1673
- input_event (input , EV_KEY , BTN_TRIGGER_HAPPY2 , !!(b13 & BIT (2 )));
1669
+ input_event (input , EV_KEY , BTN_GRIPL , !!(b13 & BIT (1 )));
1670
+ input_event (input , EV_KEY , BTN_GRIPR , !!(b13 & BIT (2 )));
1674
1671
input_event (input , EV_KEY , BTN_BASE , !!(b14 & BIT (2 )));
1675
1672
1676
1673
input_sync (input );
0 commit comments