mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
Rework gamepad handling
- Fix accelerometer axis direction - Fix touchpad input coordinates - Use physicalInputProfile instead of casting to specific GC classes - Remove deprecated GCGamepad support
This commit is contained in:
1 parent
11da9e0eea
commit
7249854641
2 files changed
+95
-156
No files matched your search
@@ -13,6 +13,11 @@
|
||||
|
||||
@interface Controller : NSObject
|
||||
|
||||
typedef struct {
|
||||
float lastX;
|
||||
float lastY;
|
||||
} controller_touch_context_t;
|
||||
|
||||
@property (nullable, nonatomic, retain) GCController* gamepad;
|
||||
@property (nonatomic) int playerIndex;
|
||||
@property (nonatomic) int lastButtonFlags;
|
||||
@@ -25,10 +30,8 @@
|
||||
@property (nonatomic) short lastRightStickX;
|
||||
@property (nonatomic) short lastRightStickY;
|
||||
|
||||
@property (nonatomic) float lastPrimaryTouchX;
|
||||
@property (nonatomic) float lastPrimaryTouchY;
|
||||
@property (nonatomic) float lastSecondaryTouchX;
|
||||
@property (nonatomic) float lastSecondaryTouchY;
|
||||
@property (nonatomic) controller_touch_context_t primaryTouch;
|
||||
@property (nonatomic) controller_touch_context_t secondaryTouch;
|
||||
|
||||
@property (nonatomic) HapticContext* _Nullable lowFreqMotor;
|
||||
@property (nonatomic) HapticContext* _Nullable highFreqMotor;
|
||||
|
||||
Reference in new issue
Block a user