|
|
|
|
|
|
public const int defaultMaxTargetFrameRate = 60; |
|
|
|
public const int defaultMinTargetFrameRate = 15; |
|
|
|
|
|
|
|
HashSet<int> _enteredPointers; |
|
|
|
readonly HashSet<int> _enteredPointers = new HashSet<int>(); |
|
|
|
|
|
|
|
bool _viewMetricsCallbackRegistered; |
|
|
|
|
|
|
|
|
|
|
protected override void OnEnable() { |
|
|
|
base.OnEnable(); |
|
|
|
|
|
|
|
|
|
|
|
#if UNITY_ANDROID
|
|
|
|
Screen.fullScreen = false; |
|
|
|
#endif
|
|
|
|
|
|
|
|
this._enteredPointers.Clear(); |
|
|
|
|
|
|
|
if (_repaintEvent == null) { |
|
|
|
_repaintEvent = new Event {type = EventType.Repaint}; |
|
|
|
|
|
|
|
|
|
|
this._windowAdapter.attachRootWidget(root); |
|
|
|
this._lastMouseMove = Input.mousePosition; |
|
|
|
|
|
|
|
this._enteredPointers = new HashSet<int>(); |
|
|
|
} |
|
|
|
|
|
|
|
public float devicePixelRatio { |
|
|
|