Overview
Context
Changes
Modified src/hid/Makefile
from [cb5296d389]
to [8756119022].
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
-
+
+
|
include ../../extra.mk
DISTCLEAN = Info.plist
SHARED_LIB = ${OBJFWHID_SHARED_LIB}
STATIC_LIB = ${OBJFWHID_STATIC_LIB}
FRAMEWORK = ${OBJFWHID_FRAMEWORK}
LIB_MAJOR = ${OBJFWHID_LIB_MAJOR}
LIB_MINOR = ${OBJFWHID_LIB_MINOR}
LIB_PATCH = ${OBJFWHID_LIB_PATCH}
SRCS = OFGameController.m
SRCS = OFGameController.m \
OFCombinedJoyConsGameController.m
INCLUDES := ${SRCS:.m=.h} \
ObjFWHID.h
includesubdir = ObjFWHID
include ../../buildsys.mk
|
︙ | | |
Added src/hid/OFCombinedJoyConsGameController.h version [56e6c1cdbc].
|
1
2
3
4
5
6
7
8
9
10
11
12
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
/*
* Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3.0 only,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* 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 "OFGameController.h"
OF_ASSUME_NONNULL_BEGIN
/**
* @brief A class for combining two Joy-Cons into a single
* @ref OFGameController.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFCombinedJoyConsGameController: OFGameController
{
OFGameController *_leftJoyCon, *_rightJoyCon;
}
/**
* @brief Creates a new game controller with the specified left and right
* Joy-Con.
*
* @param leftJoyCon The left Joy-Con
* @param rightJoyCon The right Joy-Con
* @return A new game controller combining both Joy-Cons into a single game
* controller
*/
+ (instancetype)controllerWithLeftJoyCon: (OFGameController *)leftJoyCon
rightJoyCon: (OFGameController *)rightJoyCon;
/**
* @brief Initialized an already allocated combined Joy-Cons game controller
* with the specified left and right Joy-Con.
*
* @param leftJoyCon The left Joy-Con
* @param rightJoyCon The right Joy-Con
* @return An initialized combined Joy-Cons game controller combining both
* Joy-Cons into a single game controller
*/
- (instancetype)initWithLeftJoyCon: (OFGameController *)leftJoyCon
rightJoyCon: (OFGameController *)rightJoyCon;
@end
OF_ASSUME_NONNULL_END
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added src/hid/OFCombinedJoyConsGameController.m version [44f0093bf7].