mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-01 15:26:11 +00:00
This seems to be quite broken in iOS 14.0. The Microsoft Surface Precision mouse is detected as a GCKeyboard instead of a GCMouse.
48 lines
1.4 KiB
Objective-C
48 lines
1.4 KiB
Objective-C
//
|
|
// ControllerSupport.h
|
|
// Moonlight
|
|
//
|
|
// Created by Cameron Gutman on 10/20/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import "StreamConfiguration.h"
|
|
#import "Controller.h"
|
|
|
|
@class OnScreenControls;
|
|
|
|
@protocol GamepadPresenceDelegate <NSObject>
|
|
|
|
- (void) gamepadPresenceChanged;
|
|
|
|
@end
|
|
|
|
@interface ControllerSupport : NSObject
|
|
|
|
-(id) initWithConfig:(StreamConfiguration*)streamConfig presenceDelegate:(id<GamepadPresenceDelegate>)delegate;
|
|
|
|
-(void) initAutoOnScreenControlMode:(OnScreenControls*)osc;
|
|
-(void) cleanup;
|
|
-(Controller*) getOscController;
|
|
|
|
-(void) updateLeftStick:(Controller*)controller x:(short)x y:(short)y;
|
|
-(void) updateRightStick:(Controller*)controller x:(short)x y:(short)y;
|
|
|
|
-(void) updateLeftTrigger:(Controller*)controller left:(unsigned char)left;
|
|
-(void) updateRightTrigger:(Controller*)controller right:(unsigned char)right;
|
|
-(void) updateTriggers:(Controller*)controller left:(unsigned char)left right:(unsigned char)right;
|
|
|
|
-(void) updateButtonFlags:(Controller*)controller flags:(int)flags;
|
|
-(void) setButtonFlag:(Controller*)controller flags:(int)flags;
|
|
-(void) clearButtonFlag:(Controller*)controller flags:(int)flags;
|
|
|
|
-(void) updateFinished:(Controller*)controller;
|
|
|
|
-(void) rumble:(unsigned short)controllerNumber lowFreqMotor:(unsigned short)lowFreqMotor highFreqMotor:(unsigned short)highFreqMotor;
|
|
|
|
+(int) getConnectedGamepadMask:(StreamConfiguration*)streamConfig;
|
|
|
|
-(NSUInteger) getConnectedGamepadCount;
|
|
|
|
@end
|