ObjFW  Check-in [dfaf830200]

Overview
Comment:ObjFWHID: Make most profiles public
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dfaf83020062ecf13a3f5d0ac67b3ce5ec6c4d361850a4067627cdd7cec710ec
User & Date: js on 2024-07-01 18:41:35
Other Links: manifest | tags
Context
2024-07-01
18:52
ObjFWHID: OHCombinedJoyCons -> OHJoyConPair check-in: 15ab9bba82 user: js tags: trunk
18:41
ObjFWHID: Make most profiles public check-in: dfaf830200 user: js tags: trunk
2024-06-30
12:17
ObjFWHID: Add profiles for Joy-Cons check-in: 96c7c533b1 user: js tags: trunk
Changes

Modified src/hid/Makefile from [f27c2669b4] to [70f9c3c1c0].

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
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 = OHCombinedJoyCons.m		\



       OHGameController.m		\
       OHGameControllerAxis.m		\
       OHGameControllerButton.m		\
       OHGameControllerDirectionalPad.m	\
       OHGameControllerElement.m






INCLUDES := ${SRCS:.m=.h}		\
	    OHExtendedGamepad.h		\
	    OHGameControllerProfile.h	\
	    OHGamepad.h			\
	    ObjFWHID.h

SRCS += OHDualSenseGamepad.m			\
	OHDualShock4Gamepad.m			\
	OHEmulatedGameControllerAxis.m		\
	OHEmulatedGameControllerButton.m	\
	OHEmulatedGameControllerTriggerButton.m	\
	OHExtendedN64Controller.m		\
	OHLeftJoyCon.m				\
	OHN64Controller.m			\
	OHRightJoyCon.m				\
	OHStadiaGamepad.m			\
	OHXboxGamepad.m				\
	${USE_SRCS_EVDEV}			\
	${USE_SRCS_NINTENDO_3DS}		\
	${USE_SRCS_NINTENDO_DS}			\
	${USE_SRCS_NINTENDO_SWITCH}		\
	${USE_SRCS_WII}				\
	${USE_SRCS_XINPUT}
SRCS_EVDEV = OHEvdevExtendedGamepad.m			\












>
>
>




|
>
>
>
>
>







<
<
|


<
<
<
<
<
<







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
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 = OHCombinedJoyCons.m		\
       OHDualSenseGamepad.m		\
       OHDualShock4Gamepad.m		\
       OHExtendedN64Controller.m	\
       OHGameController.m		\
       OHGameControllerAxis.m		\
       OHGameControllerButton.m		\
       OHGameControllerDirectionalPad.m	\
       OHGameControllerElement.m	\
       OHLeftJoyCon.m			\
       OHN64Controller.m		\
       OHRightJoyCon.m			\
       OHStadiaGamepad.m		\
       OHXboxGamepad.m

INCLUDES := ${SRCS:.m=.h}		\
	    OHExtendedGamepad.h		\
	    OHGameControllerProfile.h	\
	    OHGamepad.h			\
	    ObjFWHID.h



SRCS += OHEmulatedGameControllerAxis.m		\
	OHEmulatedGameControllerButton.m	\
	OHEmulatedGameControllerTriggerButton.m	\






	${USE_SRCS_EVDEV}			\
	${USE_SRCS_NINTENDO_3DS}		\
	${USE_SRCS_NINTENDO_DS}			\
	${USE_SRCS_NINTENDO_SWITCH}		\
	${USE_SRCS_WII}				\
	${USE_SRCS_XINPUT}
SRCS_EVDEV = OHEvdevExtendedGamepad.m			\

Modified src/hid/OHDualSenseGamepad.h from [5baab465cd] to [9e169bfaa8].

20
21
22
23
24
25
26





27
28
29
30
31
32
33
#import "OHExtendedGamepad.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN






@interface OHDualSenseGamepad: OFObject <OHExtendedGamepad
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;







>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#import "OHExtendedGamepad.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHDualSenseGamepad OHDualSenseGamepad.h ObjFWHID/ObjFWHID.h
 *
 * @brief A Sony DualSense gamepad.
 */
@interface OHDualSenseGamepad: OFObject <OHExtendedGamepad
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;

Modified src/hid/OHDualShock4Gamepad.h from [09c34e1c97] to [476eb51aea].

20
21
22
23
24
25
26





27
28
29
30
31
32
33
#import "OHExtendedGamepad.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN






@interface OHDualShock4Gamepad: OFObject <OHExtendedGamepad
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;







>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#import "OHExtendedGamepad.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHDualShock4Gamepad OHDualShock4Gamepad.h ObjFWHID/ObjFWHID.h
 *
 * @brief A Sony DualShock 4 gamepad.
 */
@interface OHDualShock4Gamepad: OFObject <OHExtendedGamepad
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;

Modified src/hid/OHExtendedN64Controller.h from [1d023dc5ed] to [32cb34bd64].

17
18
19
20
21
22
23








24
25
26
27
 * <https://www.gnu.org/licenses/>.
 */

#import "OHN64Controller.h"

OF_ASSUME_NONNULL_BEGIN









@interface OHExtendedN64Controller: OHN64Controller
@end

OF_ASSUME_NONNULL_END







>
>
>
>
>
>
>
>




17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 * <https://www.gnu.org/licenses/>.
 */

#import "OHN64Controller.h"

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHExtendedN64Controller OHExtendedN64Controller.h ObjFWHID/ObjFWHID.h
 *
 * @brief An extended Nintendo 64 controller.
 *
 * An extended Nintendo 64 controller has extra buttons, such as the Nintendo
 * Switch Online N64 controller.
 */
@interface OHExtendedN64Controller: OHN64Controller
@end

OF_ASSUME_NONNULL_END

Modified src/hid/OHLeftJoyCon.h from [6ef79f8ba1] to [3469b82e86].

20
21
22
23
24
25
26





27
28
29
30
31
32
33
#import "OHGameControllerProfile.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN






@interface OHLeftJoyCon: OFObject <OHGameControllerProfile
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;







>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#import "OHGameControllerProfile.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHLeftJoyCon OHLeftJoyCon.h ObjFWHID/ObjFWHID.h
 *
 * @brief A left Nintendo Switch Joy-Con.
 */
@interface OHLeftJoyCon: OFObject <OHGameControllerProfile
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;

Modified src/hid/OHN64Controller.h from [635752411f] to [0316fb70ad].

20
21
22
23
24
25
26





27
28
29
30
31
32
33
#import "OHGameControllerProfile.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN






@interface OHN64Controller: OFObject <OHGameControllerProfile
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;







>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#import "OHGameControllerProfile.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHN64Controller OHN64Controller.h ObjFWHID/ObjFWHID.h
 *
 * @brief A Nintendo 64 controller.
 */
@interface OHN64Controller: OFObject <OHGameControllerProfile
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;

Modified src/hid/OHRightJoyCon.h from [640bb5aeb4] to [8cd92d6c7b].

20
21
22
23
24
25
26





27
28
29
30
31
32
33
#import "OHGameControllerProfile.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN






@interface OHRightJoyCon: OFObject <OHGameControllerProfile
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;







>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#import "OHGameControllerProfile.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHRightJoyCon OHRightJoyCon.h ObjFWHID/ObjFWHID.h
 *
 * @brief A right Nintendo Switch Joy-Con.
 */
@interface OHRightJoyCon: OFObject <OHGameControllerProfile
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;

Modified src/hid/OHStadiaGamepad.h from [13c58b066a] to [dea889136e].

20
21
22
23
24
25
26





27
28
29
30
31
32
33
#import "OHExtendedGamepad.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN






@interface OHStadiaGamepad: OFObject <OHExtendedGamepad
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;







>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#import "OHExtendedGamepad.h"
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
# import "OHEvdevGameController.h"
#endif

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHStadiaGamepad OHStadiaGamepad.h ObjFWHID/ObjFWHID.h
 *
 * @brief A Stadia gamepad.
 */
@interface OHStadiaGamepad: OFObject <OHExtendedGamepad
#if defined(OF_LINUX) && defined(OF_HAVE_FILES)
    , OHEvdevMapping
#endif
>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;

Modified src/hid/OHXboxGamepad.h from [f497fe2896] to [b8cf8dd88d].

17
18
19
20
21
22
23





24
25
26
27
28
29
30
 * <https://www.gnu.org/licenses/>.
 */

#import "OHExtendedGamepad.h"

OF_ASSUME_NONNULL_BEGIN






@interface OHXboxGamepad: OFObject <OHExtendedGamepad>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;
	OFDictionary OF_GENERIC(OFString *, OHGameControllerDirectionalPad *)
	    *_directionalPads;
}








>
>
>
>
>







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 * <https://www.gnu.org/licenses/>.
 */

#import "OHExtendedGamepad.h"

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHXboxGamepad OHXboxGamepad.h ObjFWHID/ObjFWHID.h
 *
 * @brief A Microsoft Xbox gamepad.
 */
@interface OHXboxGamepad: OFObject <OHExtendedGamepad>
{
	OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons;
	OFDictionary OF_GENERIC(OFString *, OHGameControllerDirectionalPad *)
	    *_directionalPads;
}

Modified src/hid/ObjFWHID.h from [5e91bc1744] to [72da477079].

21
22
23
24
25
26
27

28








#import "OHGameControllerElement.h"
#import "OHGameControllerAxis.h"
#import "OHGameControllerButton.h"
#import "OHGameControllerDirectionalPad.h"
#import "OHGameControllerProfile.h"
#import "OHGamepad.h"
#import "OHExtendedGamepad.h"

#import "OHCombinedJoyCons.h"















>

>
>
>
>
>
>
>
>
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#import "OHGameControllerElement.h"
#import "OHGameControllerAxis.h"
#import "OHGameControllerButton.h"
#import "OHGameControllerDirectionalPad.h"
#import "OHGameControllerProfile.h"
#import "OHGamepad.h"
#import "OHExtendedGamepad.h"

#import "OHCombinedJoyCons.h"
#import "OHDualSenseGamepad.h"
#import "OHDualShock4Gamepad.h"
#import "OHExtendedN64Controller.h"
#import "OHLeftJoyCon.h"
#import "OHN64Controller.h"
#import "OHRightJoyCon.h"
#import "OHStadiaGamepad.h"
#import "OHXboxGamepad.h"