I am using a Wiimote controller as an input device. I use this shell for HID calls / polls.
In the demo scene that comes with this shell, the controller is polled in the Update event .
In many Wii games directed exclusively up and down, action quickly starts. The wrapper indicates the extreme vertical aiming positions (where the target goes beyond the scope / is off the screen), since
Y=-1
I tried to detect such fast movements up
1) Detecting if aim is off-screen
2) If yes, have a look if the aim is within the screen again
3) Detect if aim is off-screen again and if all this happened in a certain time period
However, the problem (I think, due to the nature of the survey only in the Update event), No. 2) does not have to happen. Perhaps the target was on the screen, but the controller was not polled when it was.
I would like to ask what could be the correct solution to this problem.
source
share