Differences From Artifact [4b0da3fefb]:
- File src/hid/OHEmulatedGameControllerTriggerButton.m — part of check-in [3777558ccd] at 2024-11-02 02:24:10 on branch trunk — ObjFWHID: Make sure `analog` is always set (user: js, size: 1358) [annotate] [blame] [check-ins using]
To Artifact [71e08346d1]:
- File
src/hid/OHEmulatedGameControllerTriggerButton.m
— part of check-in
[bc3a7747d9]
at
2024-11-03 15:46:25
on branch trunk
— ObjFWHID: Properly hide private methods
Also fixes compiling XInput with GCC. (user: js, size: 1728) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 | * <https://www.gnu.org/licenses/>. */ #include "config.h" #import "OHEmulatedGameControllerTriggerButton.h" #import "OHGameControllerAxis.h" @implementation OHEmulatedGameControllerTriggerButton | > > | > > > > > > > > > > > | | | | | 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | * <https://www.gnu.org/licenses/>. */ #include "config.h" #import "OHEmulatedGameControllerTriggerButton.h" #import "OHGameControllerAxis.h" #import "OHGameControllerElement.h" #import "OHGameControllerElement+Private.h" @implementation OHEmulatedGameControllerTriggerButton @synthesize oh_axis = _axis; + (instancetype)oh_buttonWithName: (OFString *)name analog: (bool)analog { OF_UNRECOGNIZED_SELECTOR } + (instancetype)oh_buttonWithName: (OFString *)name axis: (OHGameControllerAxis *)axis { return [[[self alloc] oh_initWithName: name axis: axis] autorelease]; } - (instancetype)oh_initWithName: (OFString *)name analog: (bool)analog { OF_INVALID_INIT_METHOD } - (instancetype)oh_initWithName: (OFString *)name axis: (OHGameControllerAxis *)axis { self = [super oh_initWithName: name analog: true]; _axis = [axis retain]; return self; } - (void)dealloc |
︙ | ︙ |