Differences From Artifact [c33068523f]:
- File
src/hid/OFEvdevGameController.m
— part of check-in
[a0af8f40b8]
at
2024-05-20 15:48:03
on branch gamecontroller
— OFGameController: Clean up buttons a bit
This also emulates a right analog stick using the C buttons on the N64
controller. (user: js, size: 16829) [annotate] [blame] [check-ins using]
To Artifact [beaad493bb]:
- File src/hid/OFEvdevGameController.m — part of check-in [cb4c3d09f4] at 2024-05-20 15:53:41 on branch gamecontroller — OFGameController: No symbols for custom buttons (user: js, size: 16734) [annotate] [blame] [check-ins using]
︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | - + - + - + - + | { if (vendorID == vendorIDNintendo && productID == productIDLeftJoycon) { switch (button) { case BTN_Z: return OFGameControllerCaptureButton; case BTN_TR: |
︙ | |||
126 127 128 129 130 131 132 | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | - + | return OFGameControllerNorthButton; case BTN_WEST: return OFGameControllerWestButton; } } else if (vendorID == vendorIDGoogle && productID == productIDStadia) { switch (button) { case BTN_TRIGGER_HAPPY1: |
︙ |