Overview
Comment: | OFGameController: Add support for Linux |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | gamecontroller |
Files: | files | file ages | folders |
SHA3-256: |
6f20cdbd5c0f186ea1efeca76fb7f4a4 |
User & Date: | js on 2024-05-09 12:57:21 |
Other Links: | branch diff | manifest | tags |
Context
2024-05-09
| ||
13:10 | OFGameController: Add missing import check-in: c5b37a9dd8 user: js tags: gamecontroller | |
12:57 | OFGameController: Add support for Linux check-in: 6f20cdbd5c user: js tags: gamecontroller | |
10:22 | Merge trunk into branch "gamecontroller" check-in: c0a80a897d user: js tags: gamecontroller | |
Changes
Modified src/OFGameController.h from [542208ba0a] to [64229ea449].
︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | + + + + + + + + + + + + + - + + + + + + + - + - + + - + - + - - + - - - - - - - | #import "OFObject.h" #import "OFString.h" OF_ASSUME_NONNULL_BEGIN /** @file */ @class OFArray OF_GENERIC(ObjectType); @class OFMutableSet OF_GENERIC(ObjectType); @class OFSet OF_GENERIC(ObjectType); /** * @brief A class for reading state from a game controller. */ OF_SUBCLASSING_RESTRICTED @interface OFGameController: OFObject { #ifdef OF_LINUX OFString *_path; int _fd; OFString *_name; OFMutableSet *_buttons, *_pressedButtons; size_t _numAnalogSticks; OFPoint _analogStickPositions[2]; #endif } #ifdef OF_HAVE_CLASS_PROPERTIES |
︙ |
Modified src/OFGameController.m from [8a9752888e] to [f307cfd03f].
︙ | |||
19 20 21 22 23 24 25 | 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 | + + - + - + - + - + - - - - - | #include "config.h" #import "OFGameController.h" #import "OFOutOfRangeException.h" #if defined(OF_LINUX) && defined(OF_HAVE_FILES) # include "platform/Linux/OFGameController.m" |
︙ |
Added src/platform/Linux/OFGameController.m version [ce46d32b19].