mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
* dark mode & stream overlay * removed all redundant imports * update for the new xcode version with fixes for the new 'implicitly retains self warning' * reworked the overlay view * cleaning up unused variables * small corrections
51 lines
1.4 KiB
Objective-C
51 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.
|
|
//
|
|
|
|
// Swift
|
|
#import "Moonlight-Swift.h"
|
|
#if !TARGET_OS_IPHONE
|
|
#import "Gamepad.h"
|
|
#endif
|
|
@class Controller;
|
|
|
|
@class OnScreenControls;
|
|
|
|
@interface ControllerSupport : NSObject
|
|
|
|
-(id) init;
|
|
|
|
#if TARGET_OS_IPHONE
|
|
-(void) initAutoOnScreenControlMode:(OnScreenControls*)osc;
|
|
-(void) cleanup;
|
|
-(Controller*) getOscController;
|
|
#else
|
|
-(void) assignGamepad:(struct Gamepad_device *)gamepad;
|
|
-(void) removeGamepad:(struct Gamepad_device *)gamepad;
|
|
-(NSMutableDictionary*) getControllers;
|
|
#endif
|
|
|
|
-(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:(char)left;
|
|
-(void) updateRightTrigger:(Controller*)controller right:(char)right;
|
|
-(void) updateTriggers:(Controller*)controller left:(char)left right:(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;
|
|
|
|
+(int) getConnectedGamepadMask;
|
|
|
|
@property (nonatomic, strong) id connectObserver;
|
|
@property (nonatomic, strong) id disconnectObserver;
|
|
|
|
@end
|