Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting where PointingPosition exactely goes off-screen #52

Open
NoteToSelfFindGoodNickname opened this issue Nov 4, 2017 · 0 comments

Comments

@NoteToSelfFindGoodNickname
Copy link

In some Wii games, you move the Wiimote extremely down and then extremely up again to trigger a weapon reload.
I tried to detect such extreme ups and down with Unity-Wiimote.

I tried a lot, but in the end I wasn't successful. Movement can be so quick that it's impossible to detect any movement direction, so it isn't possible to say something like "If pointer moved upwards and is off-screen now, user made an extreme upwards movement".

Also, I didn't find any way to say from this code...

        float[] midpoint = GetIRMidpoint();
        if (midpoint[0] < 0 || midpoint[1] < 0)
        { 
            return new float[] { -1, -1 };
        }

... where exactely the Pointer is now (upwards off-screen or downwards off-sceen).

What would be the best way to detect such extreme positions?

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

No branches or pull requests

1 participant