Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

[iOS] Issue with touch pressure + Fix #56

Open
antoineMica opened this issue Jun 28, 2018 · 0 comments
Open

[iOS] Issue with touch pressure + Fix #56

antoineMica opened this issue Jun 28, 2018 · 0 comments

Comments

@antoineMica
Copy link

antoineMica commented Jun 28, 2018

I'm currently working on an app based on a GameViewCotnroller + Metalkit.
I have added the Gainputview as a subview to the MTKView but I have found an issue with the function initWithFrame of GainputView when trying to detect the iOS windows.
Coming from this line:

UIWindow* window = [UIApplication sharedApplication].keyWindow;

I have replaced it with:
UIWindow* window = [[[UIApplication sharedApplication] delegate] window];
And it now detects the window correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant