ObjFW  Diff

Differences From Artifact [e6d7487002]:

To Artifact [1613a4493a]:


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

OF_ASSUME_NONNULL_BEGIN

/**
 * @class HIDGameControllerButton \
 *	  HIDGameControllerButton.h ObjFWHID/HIDGameControllerButton.h
 * @class OHGameControllerButton \
 *	  OHGameControllerButton.h ObjFWHID/OHGameControllerButton.h
 *
 * @brief A button of a game controller.
 */
@interface HIDGameControllerButton: HIDGameControllerElement
@interface OHGameControllerButton: OHGameControllerElement
{
	float _value;
	OF_RESERVE_IVARS(HIDGameControllerButton, 4)
	OF_RESERVE_IVARS(OHGameControllerButton, 4)
}

/**
 * @brief Whether the game controller button is pressed.
 */
@property (readonly, nonatomic, getter=isPressed) bool pressed;