ObjFW  Diff

Differences From Artifact [876c2397e0]:

  • File src/hid/HIDGameControllerAxis.h — part of check-in [16aab59c3c] at 2024-06-02 23:51:01 on branch trunk — Add HIDGameControllerMapping (user: js size: 1171)

To Artifact [a18496dca4]:

  • File src/hid/OHGameControllerAxis.h — part of check-in [afae3291bf] at 2024-06-03 19:39:51 on branch trunk — ObjFWHID: Change prefix to OH Let's leave 3 letter prefixes to 3rd parties. (user: js size: 1164)

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
 * 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 "HIDGameControllerElement.h"

OF_ASSUME_NONNULL_BEGIN

/**
 * @class HIDGameControllerAxis \
 *	  HIDGameControllerAxis.h ObjFWHID/HIDGameControllerAxis.h
 *
 * @brief An axis of a game controller.
 */
@interface HIDGameControllerAxis: HIDGameControllerElement
{
	float _value;
	OF_RESERVE_IVARS(HIDGameControllerButton, 4)
}

/**
 * @brief The value of the axis.
 */
@property (nonatomic) float value;
@end







|




|
|



|


|







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
 * 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 "OHGameControllerElement.h"

OF_ASSUME_NONNULL_BEGIN

/**
 * @class OHGameControllerAxis \
 *	  OHGameControllerAxis.h ObjFWHID/OHGameControllerAxis.h
 *
 * @brief An axis of a game controller.
 */
@interface OHGameControllerAxis: OHGameControllerElement
{
	float _value;
	OF_RESERVE_IVARS(OHGameControllerButton, 4)
}

/**
 * @brief The value of the axis.
 */
@property (nonatomic) float value;
@end