Differences From Artifact [c297eb99a1]:
- File
src/hid/OFEvdevGameController.h
— part of check-in
[21bcf92ecd]
at
2024-05-22 23:18:16
on branch trunk
— OFEvdevGameController: Rotate Joy-Cons
Since both are detected as separate devices, rotate them so that they
can be used as a single device.A new class will be added to combine two Joy-Cons into one controller. (user: js, size: 1984) [annotate] [blame] [check-ins using]
To Artifact [448b671f74]:
- File
src/hid/HIDEvdevGameController.h
— part of check-in
[39639cd987]
at
2024-06-02 21:24:25
on branch trunk
— Completely redesign and rewrite ObjFWHID
Right now only evdev is supported, support for others will be added back
later. (user: js, size: 1273) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
13 14 15 16 17 18 19 | * version 3.0 for more details. * * You should have received a copy of the GNU Lesser General Public License * version 3.0 along with this program. If not, see * <https://www.gnu.org/licenses/>. */ | | | | < | > | < < < < < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | * version 3.0 for more details. * * You should have received a copy of the GNU Lesser General Public License * version 3.0 along with this program. If not, see * <https://www.gnu.org/licenses/>. */ #import "HIDGameController.h" OF_ASSUME_NONNULL_BEGIN @interface HIDEvdevGameController: HIDGameController { OFString *_path; int _fd; bool _discardUntilReport; unsigned long *_evBits, *_keyBits, *_absBits; uint16_t _vendorID, _productID; OFString *_name; OFDictionary OF_GENERIC(OFString *, HIDGameControllerButton *) *_buttons; OFDictionary OF_GENERIC(OFString *, HIDGameControllerAxis *) *_axes; } - (instancetype)of_initWithPath: (OFString *)path OF_METHOD_FAMILY(init); - (void)of_pollState; @end OF_ASSUME_NONNULL_END |