mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-01 23:35:59 +00:00
37 lines
1.0 KiB
Objective-C
37 lines
1.0 KiB
Objective-C
//
|
|
// OnScreenControls.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 12/28/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class ControllerSupport;
|
|
@class StreamConfiguration;
|
|
|
|
@interface OnScreenControls : NSObject
|
|
|
|
typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
|
|
OnScreenControlsLevelOff,
|
|
OnScreenControlsLevelAuto,
|
|
OnScreenControlsLevelSimple,
|
|
OnScreenControlsLevelFull,
|
|
|
|
// Internal levels selected by ControllerSupport
|
|
OnScreenControlsLevelAutoGCGamepad,
|
|
OnScreenControlsLevelAutoGCExtendedGamepad,
|
|
OnScreenControlsLevelAutoGCExtendedGamepadWithStickButtons
|
|
};
|
|
|
|
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig;
|
|
- (BOOL) handleTouchDownEvent:(NSSet*)touches;
|
|
- (BOOL) handleTouchUpEvent:(NSSet*)touches;
|
|
- (BOOL) handleTouchMovedEvent:(NSSet*)touches;
|
|
- (void) setLevel:(OnScreenControlsLevel)level;
|
|
- (OnScreenControlsLevel) getLevel;
|
|
- (void) show;
|
|
|
|
@end
|