2014-12-28 21:42:18 -05:00
|
|
|
//
|
|
|
|
|
// OnScreenControls.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-12-28 21:42:18 -05:00
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 12/28/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-12-28 21:42:18 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2015-01-09 16:13:44 -05:00
|
|
|
@class ControllerSupport;
|
2022-07-21 20:54:57 -05:00
|
|
|
@class StreamConfiguration;
|
2015-01-09 16:13:44 -05:00
|
|
|
|
2014-12-28 21:42:18 -05:00
|
|
|
@interface OnScreenControls : NSObject
|
|
|
|
|
|
2014-12-29 13:03:07 -05:00
|
|
|
typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
|
|
|
|
|
OnScreenControlsLevelOff,
|
2015-01-09 16:13:44 -05:00
|
|
|
OnScreenControlsLevelAuto,
|
2014-12-29 13:03:07 -05:00
|
|
|
OnScreenControlsLevelSimple,
|
2015-01-09 16:13:44 -05:00
|
|
|
OnScreenControlsLevelFull,
|
|
|
|
|
|
|
|
|
|
// Internal levels selected by ControllerSupport
|
|
|
|
|
OnScreenControlsLevelAutoGCGamepad,
|
|
|
|
|
OnScreenControlsLevelAutoGCExtendedGamepad,
|
2018-11-03 14:01:32 -07:00
|
|
|
OnScreenControlsLevelAutoGCExtendedGamepadWithStickButtons
|
2014-12-29 13:03:07 -05:00
|
|
|
};
|
|
|
|
|
|
2022-07-21 20:54:57 -05:00
|
|
|
- (id) initWithView:(UIView*)view controllerSup:(ControllerSupport*)controllerSupport streamConfig:(StreamConfiguration*)streamConfig;
|
2015-01-08 21:04:19 -05:00
|
|
|
- (BOOL) handleTouchDownEvent:(NSSet*)touches;
|
|
|
|
|
- (BOOL) handleTouchUpEvent:(NSSet*)touches;
|
|
|
|
|
- (BOOL) handleTouchMovedEvent:(NSSet*)touches;
|
2014-12-29 13:03:07 -05:00
|
|
|
- (void) setLevel:(OnScreenControlsLevel)level;
|
2019-10-22 00:16:20 -04:00
|
|
|
- (OnScreenControlsLevel) getLevel;
|
|
|
|
|
- (void) show;
|
2014-12-29 00:11:14 -05:00
|
|
|
|
2014-12-28 21:42:18 -05:00
|
|
|
@end
|