Differences From Artifact [5ec72d013e]:
- File src/hid/OFEvdevGameController.h — part of check-in [f99cb23d38] at 2024-05-20 19:38:02 on branch trunk — OFEvdevGameController: Poll HAT0[XY] for D-Pad (user: js, size: 1926) [annotate] [blame] [check-ins using]
To 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]
︙ | |||
33 34 35 36 37 38 39 40 41 42 43 44 45 46 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | + | OFMutableSet OF_GENERIC(OFGameControllerButton) *_buttons; OFMutableSet OF_GENERIC(OFGameControllerButton) *_pressedButtons; bool _hasLeftAnalogStick, _hasRightAnalogStick; bool _hasLeftTriggerPressure, _hasRightTriggerPressure; unsigned int _leftTriggerPressureBit, _rightTriggerPressureBit; OFPoint _leftAnalogStickPosition, _rightAnalogStickPosition; float _leftTriggerPressure, _rightTriggerPressure; unsigned int _leftAnalogStickXBit, _leftAnalogStickYBit; int32_t _leftAnalogStickMinX, _leftAnalogStickMaxX; int32_t _leftAnalogStickMinY, _leftAnalogStickMaxY; unsigned int _rightAnalogStickXBit, _rightAnalogStickYBit; int32_t _rightAnalogStickMinX, _rightAnalogStickMaxX; int32_t _rightAnalogStickMinY, _rightAnalogStickMaxY; int32_t _leftTriggerMinPressure, _leftTriggerMaxPressure; int32_t _rightTriggerMinPressure, _rightTriggerMaxPressure; |
︙ |