SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
JoyKit/JOYAxes3D.h
1 #import <Foundation/Foundation.h>
2 #import "JOYInput.h"
3
4 typedef enum {
5 JOYAxes3DUsageNone,
6 JOYAxes3DUsageAcceleration,
7 JOYAxes3DUsageOrientation,
8 JOYAxes3DUsageGyroscope,
9 JOYAxes3DUsageNonGenericMax,
10
11 JOYAxes3DUsageGeneric0 = 0x10000,
12 } JOYAxes3DUsage;
13
14 typedef struct {
15 double x, y, z;
16 } JOYPoint3D;
17
18 @interface JOYAxes3D : JOYInput
19 + (NSString *)usageToString: (JOYAxes3DUsage) usage;
20 - (JOYPoint3D)rawValue;
21 - (JOYPoint3D)normalizedValue; // For orientation
22 - (JOYPoint3D)gUnitsValue; // For acceleration
23 @property JOYAxes3DUsage usage;
24 @end
25
26
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.